-
Notifications
You must be signed in to change notification settings - Fork 174
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
Unwrap HandlerFailedException for sync Messenger messages too #475
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assuming (needs to be checked by maintainers) that HandlerFailedException
can be un-wrapped by default within the context of ErrorListener#handleExceptionEvent()
, I'm totally for this patch 👍
IMO it should, because it can also contain multiple exceptions, due to multiple handlers for the same message, failing together. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build is broken 😬
CI failure seems triggered by symfony/symfony#40677 If we cannot fix it, we can (temporarily?) switch to |
@Jean85 IMO using |
I wonder if that's because the messenger encounters the fatal error twice? Then the exception would indeed be captured twice, with the current change. |
Why would encounter it twice? Also, tests do NOT fail locally, there's definitely something wonky here.. |
The code around the assertions looks completely wonky: sentry-symfony/tests/End2End/End2EndTest.php Lines 141 to 155 in 43cd505
The |
IIRC that was done in #322 due to the fact that with different Symfony version you would get different behaviours.. Let's see what happens if I revert that. [EDIT] The reason is a bit more nuanced:
|
067b592
to
05b2429
Compare
This reverts commit 05b2429.
This pull request has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Will fix #469