Issue
If you’re sending data to Sentry using the envelope API and receiving an HTTP 403 error with the response:
{"detail": "event submission rejected with_reason: ProjectId"}this is most probably related to your organization’s data region.
Applies To
- Customers using the Envelope API
- Customers hosted in the EU
Resolution
If your data is hosted in the EU, you’ll need to send envelopes to your region-specific ingest endpoint instead of the default US one (POST /api/<project_id>/envelope/)
It will look something like this:
https://o123456789.ingest.de.sentry.io/api/1234567/envelope/
In this format:
o123456789ingest.de.sentry.iois your EU ingest domain1234567is your project ID
Using the correct regional ingest URL ensures the request is routed to the environment where your project actually exists, and the 403 error should no longer occur.