-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Nextjs 404 errors on /monitoring url with Netlify deploy #8869
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
The SDK uses Next.js rewrites in order to tunnel events in order to circumvent ad blockers. It might be possible that Netlify doesn't support rewrites. I found this. To turn off the tunneling functionality remove the |
I am having this issue too, removing tunnelRoute helped, but I would rather use tunneling. |
This is something you have to figure out with Netlify I suppose. Off of Netlify everything works fine. Feel free to report back if you find a solution and maybe we can make this work out of the box. |
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 remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Still having this issue, it works when tunneling is removed but that seems to prevent ad-blocker embedded browsers not being able to use it. For example, I can send a user feedback (using the widget) from Chrome, but unable to do it on Brave. |
I'm getting the same issue with NextJS with Sentry on Vercel. Works on local development but in Vercel I get 404. Not a lot of search results. |
Please open a new issue and provide minimal reproduction if you experience this off of Netlify. The |
I've opened a new issue which I think may be linked to this #16128, this issue occured when using Cloudflare. |
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.64.0
Framework Version
Next 13.4.13, React 18
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
I used the wizard to set up sentry. I installed the Sentry integration plugin in Netlify. I hooked Gitlab with Sentry and connected the repository.
The server side errors of Nextjs get reported fine in Sentry. However the client errors return 404 when hitting the monitoring endpoint.
On my local environemnt everything works fine. Both server and client errors get reported in sentry fine and the monitoring tunnel rewrite works.
Expected Result
The monitoring endpoint should return 201.
Actual Result
It returns 404.
The text was updated successfully, but these errors were encountered: