Skip to content

fix(cli): Use org-scoped issue routes in sentry api examples - #2590

Open
sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/api-examples-org-scoped-issues
Open

sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/api-examples-org-scoped-issues

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

sentry api --help and the sentry-cli skill's API reference used the unscoped issues/<id>/ route. In getsentry/sentry that route is deprecated in favor of the org-scoped one and listed in REGION_PINNED_URL_NAMES, so the API gateway always sends it to the fallback cell. Organizations in another region get a 404, and since CELL_API_DEPRECATION_DATE has passed, any org can get a 410 during brownouts.

  • The four issue examples in api.ts now use organizations/my-org/issues/123456789/, and references/api.md is regenerated.
  • When an unscoped issues/<id>/... or groups/<id>/... request returns 404 or 410, sentry api prints a warning with the org-scoped form.

Fixes #2589

via @BYK.

--

View Session [Sentry]

The help and skill examples used the unscoped issues/<id>/ route. Sentry
deprecated it for cell routing and pins it to one region, so it 404s for
organizations hosted elsewhere and 410s during deprecation brownouts.
Switch the examples to organizations/my-org/issues/<id>/, and print a
hint with the org-scoped form when an unscoped issue route returns 404
or 410.

Fixes #2589

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@vercel

vercel Bot commented Nov 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Nov 30, 2026 9:41am UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 30, 2026 9:41am UTC

Request Review

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 30, 2026 09:57
@sentry-junior
sentry-junior Bot requested a review from BYK November 30, 2026 09:57
@github-actions github-actions Bot added the risk: low PR risk score: low label Nov 30, 2026

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cli — 33039666 Deployed Nov 30, 2026 by vercel[bot]
Preview – sentry-local — 33039666 Deployed Nov 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sentry api help and skill examples use the deprecated unscoped issues/<id>/ route, which 404s for EU organizations

1 participant