When running Sentry with NextJS, what is the best way to uncover minified server errors? #16038
Unanswered
jonschmidt
asked this question in
Q&A
Replies: 1 comment
-
If you enable tracing in the SDK, Sentry should show you the related error in the backend via the trace. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When an error is thrown in a server component in nextjs, we get the following
It includes a "digest" that we can use to find the real error.
Right now, we are able to take this error, ssh into our instance, and grep our logs for the digest, and then we find something like
So while this tells us the actual error that was thrown, the code is minified, and we cannot accurately figure out where it is being thrown from.
One thing I think I saw someone mention is that if you have tracing enabled, you can see the actual error further up the trace. So is it true that the only way to get the actual source of these server component errors with the proper source code is to pay for tracing?
Any other tips here?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions