sentry-javascript: Next.js client monitoring not working in EU region

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

Install sentry: "@sentry/nextjs": "^7.109.0", and create organization in EU region and point it there.

Next version in use is: "next": "^12.3.4",

Expected Result

Client can send Sentry events via server to Sentry EU.

Actual Result

Server monitoring works fine, but client gets from /api/monitoring requests this response:

403 Forbidden
{"detail":"event submission rejected with_reason: ProjectId"}

If I change the client dsn to old US one, client monitoring works.

Product Area

Replays and Issues

Link

ORG_SLUG: humbol

DSN

No response

Version

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 months ago
  • Comments: 27 (13 by maintainers)

Commits related to this issue

Most upvoted comments

Works for us now too. Thank you

Works for us now. Thank you.

@jkytomak Please disable tunnelRoute for now as a workaround until we have the fix released. Afterwards you can upgrade and the issue should be resolved. Thanks for reporting this and sticking with us. I’ll make sure the release goes out on Monday first thing.

I think we found the culprit. The matching logic based on the r query param was applied wrongly and we don’t send to the localized DSN.

Fix is up here: https://github.com/getsentry/sentry-javascript/pull/11577