-
-
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
NextJS SSG Error Handling Not Working, Client-side does #6255
Comments
Hi, thanks for writing in. We know server-side error capturing on Vercel is super funky at the moment - we compiled a list of what's working on Vercel and what isn't here: #6120 This issue is probably also a duplicate of #6117. I spent some time troubleshooting why errors thrown in data fetchers on Vercel are weirdly not catchable but I didn't come to a result. We have code that is supposed to catch errors, but the sentry-javascript/packages/nextjs/src/config/wrappers/wrapperUtils.ts Lines 36 to 48 in 955a1b2
If I find the time I will reach out to the Vercel folks and ask if they're doing some magic that might mess with the SDK. |
@chris-erickson if you could also reach out to Vercel, perhaps that can help us dig deeper into this situation. Any help is appreciated. Thanks! |
I pinged them on a long running discussion, we'll see. Also skimming the table of known issues, I see that the experimental edge routes is exactly the issues I'm having using the new opengraph image render. Seems like Vercel is outrunning how fast third parties can keep up (not just Sentry, I have a couple things that have recently started throwing warnings in the more recent versions). |
Hi @chris-erickson this should be fixed with #6578 in the latest version of the SDK. Feel free to try it out and let us know if it resolved the issue for you! |
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 🥀 |
Discussed in #6254
Originally posted by chris-erickson November 21, 2022
I'm struggling a lot to understand why the server-side error handling isn't working. We have had client side working for quite some time, I'm not sure if server side has ever worked for us (so, I can't point specifically to something we maybe changed as a clue).
Versions:
I made a testing page that will throw either in
getServerSideProps
directly, or in an async function called there (to simulate a third-party API call that dies for some reason). When I load the page in Vercel, the logs emit:when I run it locally with
build/serve
I get:note that
comes from the
sentry.server.config.js
and it's only present in the local use case. This leads me to believe something is disabling sentry when it's deployed but I don't for the life of me know what could be doing that or how to examine it.Relevant parts of the next config looks like
The text was updated successfully, but these errors were encountered: