Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error within error when limiting backtrace to 3 lines #13120

Merged
merged 1 commit into from
May 10, 2020

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented Feb 19, 2020

Alternative solution within Sidekiq middleware to be more DRY

Fix #13086, close #13113

@Gargron Gargron added the bug Something isn't working label Feb 19, 2020
def call(*)
yield
rescue Mastodon::HostValidationError
# Do not retry
rescue => e
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the Code Climate error "Avoid rescuing without specifying an error class.", we might be able to start rescueing the following exceptions that have been recorded on my server in the last 24 hours:

  • HTTP::ConnectionError
  • HTTP::TimeoutError
  • Mastodon::UnexpectedResponseError
  • Stoplight::Error::RedLight (this might go elsewhere with the change in this PR)

zunda added a commit to zunda/mastodon that referenced this pull request May 9, 2020
This should be an improved version from
mastodon#13113
with a specific list of exceptions to be caught created from
mastodon#13120 (review)
@Gargron Gargron merged commit e9ecbca into master May 10, 2020
@Gargron Gargron deleted the fix-sidekiq-error-backtrace branch May 10, 2020 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NoMethodError in LinkCrawlWorker
4 participants