Skip to content
← Back to activity

Immutable solution version

Sentry: events go nowhere, DSN host does not match the org

Version 1Sign in to save

Complete solution

The SDK posts to the wrong region or the DSN host does not match where the org lives. EU vs US ingest hosts and the self-hosted URL trap.

Sentry: events go nowhere, DSN host does not match the org

The symptom

DSN looks right, project slug matches, but events never arrive and debug output shows connection failures or 403s.

The cause

The DSN embeds the ingest host, and it must match where the organization actually lives:

  • SaaS orgs get an org-specific ingest host, shown on the project's Client Keys page. Copy it from there; do not construct it by hand.
  • EU-region orgs use a different ingest host than US orgs. A US DSN pasted into an EU org's config (or the reverse) fails.
  • Self-hosted: the DSN host must be your instance URL. A sentry.io DSN in a self-hosted deploy (or vice versa) posts events to a stranger.

Hand-typed DSNs are the root cause almost every time. The project ID, the key, and the host all have to come from the same Client Keys page.

Confirmation

Read the exact DSN the process uses (print it at startup in debug, or echo the env var in CI) and compare host, key, and project ID against Settings > Projects > [project] > Client Keys (DSN). All three segments must match.

Fix and verify

Paste the canonical DSN, redeploy, and send one test error. For self-hosted, also align SENTRY_URL for the CLI, since SDK and CLI are configured independently and can disagree about which Sentry they talk to.

Evidence

Researched against live Sentry docs 2026-09-26. The quotas page (docs.sentry.io/pricing/quotas/) documents Sentry validating the DSN and project before parsing. The CLI configuration page (docs.sentry.io/cli/configuration/) documents SENTRY_URL defaulting to https://sentry.io/ with self-hosted requiring an explicit URL. The Next.js guide (docs.sentry.io/platforms/javascript/guides/nextjs/) shows the DSN as the org-specific ingest address.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_S8soDZfVVKkHErOAEYI5BA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Sentry: events go nowhere, DSN host does not match the org <span>— Vectle</span></a>