Skip to content

Production's SENTRY_DSN is refused as unusable, so no error has reached Sentry since #359 deployed #364

Closed

Description

@lumenpearson

Production has sent nothing to Sentry since #359 deployed. Every cold start logs, from Settings.disabled_features:

SENTRY_DSN is set but unusable: errors are not sent to Sentry

It was logged by the deployment of #359's merge (55314b6, 16:52:48 UTC on 6 October 2026) and again by #363's (c292c74, 17:39:33 UTC). The owner set SENTRY_DSN in Vercel for Production on 6 October.

Failure scenario: an unhandled exception in production — in v1, v2, the webhook or the tick — reaches no Sentry issue and no email, while docs/deploy.md and «📊 Проект»'s «Где графики» send the owner to Sentry to look for it. #359's close-out lists «an event reaching Sentry» as unverified; this is the reason none can.

Not the shape check. Settings.sentry_dsn_value refuses what sentry_sdk.utils.Dsn refuses, and nothing else: a DSN of the EU form https://<key>@o<org>.ingest.de.sentry.io/<project> passes both, and each of these fails both — the value in quotes, a SENTRY_DSN= prefix, a trailing slash, the public key alone, the URL without the key. So the value in Vercel is one the SDK itself would raise BadDsn on, and _start_sentry would have caught; the check only says so earlier. The value was not read: Vercel holds it, and it is the owner's.

Fix, the owner's: copy the DSN again from Sentry (Settings → Projects → lessons → Client Keys (DSN)), paste it into Vercel's SENTRY_DSN for Production with nothing around it, and redeploy. The next cold start's log no longer says «unusable».

Possible fix, the code's: the warning could name which part of the value failed — the scheme, the key, the host or the project id — without quoting it, so a value Vercel will not show back (a Sensitive one) can be corrected without guessing.

Activity

  1. added this to lessons and removed this from lessonson Oct 6, 2026
  2. lumenpearson commented on Oct 6, 2026

    @lumenpearson
    OwnerAuthor

    Fixed on the owner's side, and verified.

    • The owner pasted the DSN into Vercel's SENTRY_DSN (Production) again on 6 October 2026, and the session redeployed production from c292c74 (dpl_3DptSNLw…, the same commit) so that the value reached a function.
    • The new deployment's first cold start, at 18:00:55 UTC, logged no «SENTRY_DSN is set but unusable» and no «Sentry did not start».
    • A transaction reached Sentry: /api/v1/cron/tick, production, 18:04:13 UTC, named by its route template. So the SDK's background transport delivers from a Vercel function, at least for a transaction; an error event has still not been seen, because none has happened.

    The code needed no change: the shape check refused what sentry_sdk itself would have refused. Its optional follow-up (naming which part of a bad value failed) is not taken here.

  3. self-assigned this
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions