Replies: 1 comment 1 reply
-
You haven't mentioned trying https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#instrument-nextjs-server-actions |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In next.js (v14), when error is thrown in a server action, it seems to be caught by some global error handler, so looks like there's been someone movement after this: #11709
I tried to use
autoInstrumentServerFunctions
: false to disable this global error handling, but it doesn't do it -- uncaught errors are still reported to Sentry. Is this config option actually for some other purpose?I tried to do everything possible (
Sentry.setTag
etc.) to attach context to the error that is reported by the global error handler, but I just couldn't make it happen. Also, the errors don't seem to go through thebeforeSend
callback either, where they could be set. Any ideas? Thanks!The use case is roughly:
Beta Was this translation helpful? Give feedback.
All reactions