fix(auth): use org token region_url as API base URL#3377
Closed
shayna-ch wants to merge 4 commits into
Closed
Conversation
shayna-ch
marked this pull request as draft
July 23, 2026 17:40
shayna-ch
force-pushed
the
shayna-ch/region-url-issue
branch
from
July 23, 2026 17:40
92224cb to
f553069
Compare
shayna-ch
marked this pull request as ready for review
July 23, 2026 17:40
szokeasaurusrex
requested changes
Jul 23, 2026
szokeasaurusrex
left a comment
Member
There was a problem hiding this comment.
Not all endpoints support region URLs as some of the endpoints are on the control silo (sentry.io), but all of the endpoints we call directly are reachable through sentry.io. I am not deeply familiar with the exact mechanisms for this, but essentially there is a reverse proxy from the control silo to the region silos.
This change should not be necessary at all. I'd appreciate more context about the problem so we can identify the root cause and find an acceptable solution
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.
Org auth tokens embed both
url(always the primary US URL) andregion_url, but the CLI only readurl. For orgs with non-default data residency (e.g. EU), uploads routed to the wrong region and failed withInvalid org token, ignoringSENTRY_URL/--url.Now prefers
region_urlas the API base URL when present, falling back tourlfor older tokens.