-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Next.js SSR unhandled errors are not logged #9152
Comments
|
Hi @curiousercreative thanks for reporting! Backlogging to investigate this further (currently too busy with other tasks). If you want to help speed this up, we'd greatly appreciate a minimal reproduction as a GH repo. Only asking because your repro steps make it seem like you already set up a minimal repro project. |
@Lms24 I've added a reproduction repo here: https://github.com/CommonEnergy/sentry-next-ssr To repro:
|
Hey thanks for opening this issue. This is mind-blowing to me. We are instrumenting getServerSideProps but never considered instrumenting the actual page if it is run on the server. This is something we need to fix. |
@lforst we should also investigate whether the app router (where server components are the default) is affected and make sure those pages are similarly instrumented. |
@curiousercreative In the app-router we have this for sure! |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
7.73.0
Framework Version
Next.js 13.5.3
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
npm run build && npm start
Expected Result
I expected at least the server-side error to be logged in Sentry. I wouldn't be surprised if both a server-side and client-side error were logged per page load.
Actual Result
No errors are logged in sentry
The text was updated successfully, but these errors were encountered: