-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Next.js not capturing client-side errors #10669
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
Comments
Hi, thanks for writing in! It's awesome that you provided logs! This line:
tells us that there was a network error sending the event. In 99.9% of the cases this happens when an adblocker is interfering with requests to Sentry. Can you check whether your browser or any sort of extensions happen to block the reqs? |
Thanks for the response. I've tried adding the tunnel route to my next.config, trying a different browser (switched from Chrome to Safari) and I don't have any ad-blockers but the issue is still persisting.
|
I am not aware of any issues like this in the SDK. Would you mind sharing a small reproduction example that lets us reproduce this behaviour? As an intermediary step, please check that your DSN env var is set and correct. Thanks! |
I can't really show a reproduction at the moment. The
enabled. I'm still getting the
This is my
and my
Thank you for your help, I appreciate it. |
Please check you followed the setup here to set up react rendering errors: https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#report-react-component-render-errors Since otherwise your setup is pretty much what we tell you to do in the docs and I cannot reproduce the issue you're describing we certainly need a way to reproduce this. When you have the time please try to set up a very basic Next.js app with this behaviour and share it with us. Thank you! |
I had the same issue. The problem was due to my middleware config and I fixed it by adding monitoring route as an exception
|
@arnaudjnn Ah thanks for that! I wrote down a task for myself to mention this in the docs and in the wizard setup. |
Ah I think that could be it! Thanks @arnaudjnn! |
That has resolved the issue. Thank you both for your help |
Opened getsentry/sentry-wizard#544 and getsentry/sentry-docs#9306 to better document this interaction. |
I'm getting this error even though I applied that solution :( Every request on the deploy hits 404.. My website is deployed on netlify! Any clues why this keeps happening? |
@kunzeleric Please see #8869 (comment) |
@lforst thanks a lot! :) |
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.101.0
Framework Version
"next": "^13.5.4",
Link to Sentry event
No response
SDK Setup
sentry.client.config.ts
Steps to Reproduce
When a client-side exception occurs and the
error.tsx
page is rendered, the error is logged to the console but not captured in Sentry. Server-side issues are captured by Sentry without problems.src/app/error.tsx
Expected Result
When
error
page is rendered, error should be captured as an issue in SentryActual Result
Logs
The text was updated successfully, but these errors were encountered: