]> cat aescling's git repositories - mastodon.git/commit
Fix webfinger retries (#4275)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 19 Jul 2017 23:59:07 +0000 (01:59 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Jul 2017 23:59:07 +0000 (01:59 +0200)
commit1fcdaafa6fbe6d746a096c33263d76e6819da46d
treef12319e574997bea52eb6074e35e84addcfa78fa
parentf24b81e27f1c6290cc6f43a71a32200a08c47d1c
Fix webfinger retries (#4275)

* Do not raise unretryable exceptions in ResolveRemoteAccountService

* Removed fatal exceptions from ResolveRemoteAccountService

Exceptions that cannot be retried should not be raised. New exception
class for those that can be retried (Mastodon::UnexpectedResponseError)
14 files changed:
app/controllers/api/base_controller.rb
app/lib/exceptions.rb
app/services/fetch_remote_account_service.rb
app/services/fetch_remote_status_service.rb
app/services/process_interaction_service.rb
app/services/resolve_remote_account_service.rb
app/services/send_interaction_service.rb
app/services/subscribe_service.rb
app/workers/import_worker.rb
app/workers/pubsubhubbub/delivery_worker.rb
spec/controllers/api/base_controller_spec.rb
spec/services/resolve_remote_account_service_spec.rb
spec/services/subscribe_service_spec.rb
spec/workers/pubsubhubbub/delivery_worker_spec.rb