-
-
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 500 Error logs in development but not in Vercel deploy #8155
Comments
Hm, looks like this is a duplicate of #7602. |
I think you're right. Still no solve then? |
Gotta look into this. I am like 99.999% sure this worked at some point. Maybe vercel changed something or we have a regression. Just to confirm: This happens when throwing in a basic server component right? Do you use the edge runtime? |
Yes to both. Thank you for digging into this! |
I'm joining the wait too |
This issue 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 🥀 |
Closing this issue for cleanup. Please re-open if this still applies. Thanks! |
@lforst Was there a resolution to this? We had a bug live on our app for three weeks uncaught because of this gap in Sentry's coverage. |
There are several reasons why I closed this:
It's unlucky that the SDK wasn't reporting the error for you but there is no guarantee that the SDK will catch everything. It's also just code after all. Since a lot of time has passed I recommend updating Next.js and our SDK and report back whether the problem still exists. |
Which question did you ask that wasn't answered? Also, there was somebody else that was running into this issue (@avnerI). |
@TrentHurlbut My apologies! I missed the "Yes to both". As for this issue, I unfortunately cannot reproduce it. I am getting errors in Sentry when I throw in an app deployed to Vercel. Would you mind sharing what the error was about that wasn't reported to Sentry? One thing I can say: If there are any errors happening outside of any handlers, meaning in the global scope, outside of any api routes or server components, these errors will likely not be caught by Sentry. This is a limitation of AWS lambdas which Vercel uses, since they instantly freeze when a request is |
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.52.1
Framework Version
Next 13.2.3
Link to Sentry event
https://repvue.sentry.io/issues/4189882115/?query=is%3Aunresolved&referrer=issue-stream&stream_index=0
SDK Setup
sentry.client.config.js
sentry.edge.config.js
sentry.server.config.js
Steps to Reproduce
Expected Result
Both development and deployment log the same 500 SSR error in Sentry project issues.
Actual Result
Hello again :)
Actual result is the 500 SSR error only logs in development and not in the Vercel deploy. I have provided a link to the specific issue.
Here are the only logged errors we are seeing in Vercel associated with the event:
and
I'm not sure they have anything to do with Sentry, however. Just communicating that an error is happening on the server. There are no other logs related to Sentry or this event. It is almost like it's being ignored.
Is this at all related to this issue?
#6120
The text was updated successfully, but these errors were encountered: