You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yeah, sorry about that, we have not documented this ideally. You have to call setupExpressErrorHandler() after your routes are defined, but before all other middlewares. I'll fix this in the docs too!
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.2.1
Framework Version
express.js
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
If there is a similar router as below, then setupExpressErrorHandler does not work.
We can swap them as a workaround. In this case, the Sentry will catch errors, and the response will be returned as expected.
Expected Result
work
Actual Result
doesn't work
The text was updated successfully, but these errors were encountered: