Skip to content

CLI calls deprecated issue and DSN lookup routes #2089

Closed

Description

@sentry-junior

The CLI still calls two Sentry API routes that are deprecated for cell routing. Since CELL_API_DEPRECATION_DATE (2026-05-15) they can return 410 Gone on SaaS during brownout windows, which breaks the commands that hit them.

Unscoped issue details: GET/PUT /api/0/issues/{id}/

  • getIssue() (packages/cli/src/lib/api/issues.ts:330 on d0ae06c) handles bare numeric issue IDs with no org context (issue view 123456789, explain, plan, events, tags, resolve…).
  • updateIssueStatus() without orgSlug sends the legacy PUT (issues.ts:634).
  • mergeIssues() also invalidates cached responses for that legacy URL (issues.ts:703). It makes no request.
  • Sentry marks GET/PUT/DELETE on sentry-api-0-group-details as @deprecated(CELL_API_DEPRECATION_DATE, …) (group_details.py:239, since getsentry/sentry@7fc78c73388).

DSN project lookup: GET /api/0/projects/?query=dsn:<key>

  • findProjectByDsnKey() (packages/cli/src/lib/api/projects.ts:578 and :593) resolves DSNs that don't carry o<id> in the host, such as legacy sentry.io DSNs and self-hosted DSNs. It's used by DSN auto-detection (lib/dsn/resolver.ts, lib/resolve-target.ts).
  • ProjectIndexEndpoint.get is @deprecated(CELL_API_DEPRECATION_DATE, suggested_api="sentry-api-0-organization-projects") (project_index.py:34, since getsentry/sentry@f7d342f5f55).

Brownout behavior

  • CELL_API_DEPRECATION_DATE is defined at constants.py:1036.
  • The @deprecated decorator does nothing on self-hosted. On SaaS, after the deprecation date, it returns 410 inside the brownout window (api/helpers/deprecation.py:200-212).
  • The configured window is api.deprecation.brownout-cron: 0 12 * * * with a 60 s duration, so 60 s daily at 12:00 UTC. That's the sentry default and the getsentry value in sentry-options-automator. I only checked the configuration, not live production behavior.

Related

via @BYK.

--

View Session [Sentry]

Activity

  1. linear-code commented on Nov 7, 2026

    @linear-code
  2. added a commit that references this issue on Nov 7, 2026
    951ed33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apibugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions