Repository navigation
fix(cli): Use org-scoped issue routes in sentry api examples - #2590
Open
sentry-junior[bot] wants to merge 1 commit into
Open
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sentry api --helpand the sentry-cli skill's API reference used the unscopedissues/<id>/route. In getsentry/sentry that route is deprecated in favor of the org-scoped one and listed inREGION_PINNED_URL_NAMES, so the API gateway always sends it to the fallback cell. Organizations in another region get a 404, and sinceCELL_API_DEPRECATION_DATEhas passed, any org can get a 410 during brownouts.api.tsnow useorganizations/my-org/issues/123456789/, andreferences/api.mdis regenerated.issues/<id>/...orgroups/<id>/...request returns 404 or 410,sentry apiprints a warning with the org-scoped form.Fixes #2589
via @BYK.
--
View Session [Sentry]