Add callback_url/acct information for Sidekiq PuSH workers Exception.#4281
Add callback_url/acct information for Sidekiq PuSH workers Exception.#4281Gargron merged 4 commits intomastodon:masterfrom
Conversation
|
ok maybe fix the broken tests d: still... i really want this |
5155e38 to
9f44db1
Compare
9f44db1 to
a9ff459
Compare
| def to_s | ||
| "#{@response.uri} returned code #{@response.code}" | ||
| if response.respond_to? :url | ||
| super("#{response.uri} returned code #{response.code}") |
|
What is the difference between "response.uri" and "acct"? One gives more meaningful information, in my opinion. |
|
This feels like it's redundant now that we use UnexpectedResponseError. |
|
I'm confused about RSpec executes Sidekiq worker directly and exceptions thrown by workers returns to caller... |
|
@nightpool What I changed in this PR is add acct/callback_url to Exceptions which Sidekiq workers raises. |
|
okay, that makes sense. LGTM |
unarist
left a comment
There was a problem hiding this comment.
Looks good, but I'm not sure about raise e.class "..." is proper way or not.
|
I send alternative implementation: #4283 |
…mastodon#4281) * Add destination informations to exception on SubscribeWorker and DeliveryWorker. * Simplify delivery error message. * Prevent changing Exception type... * fix typo.
Some exception does not report hostname in exception message.

So, hostname does not shown in Sidekiq error console.
You need check database tables to know which host returns error.
With this PR, you can easily see which server is in trouble...