Skip to content

fix(auth): use org token region_url as API base URL#3377

Open
shayna-ch wants to merge 2 commits into
masterfrom
shayna-ch/region-url-issue
Open

fix(auth): use org token region_url as API base URL#3377
shayna-ch wants to merge 2 commits into
masterfrom
shayna-ch/region-url-issue

Conversation

@shayna-ch

Copy link
Copy Markdown
Member

Org auth tokens embed both url (always the primary US URL) and region_url, but the CLI only read url. For orgs with non-default data residency (e.g. EU), uploads routed to the wrong region and failed with Invalid org token, ignoring SENTRY_URL/--url.

Now prefers region_url as the API base URL when present, falling back to url for older tokens.

@shayna-ch
shayna-ch requested review from a team and szokeasaurusrex as code owners July 21, 2026 21:50
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor
Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Fixes

- use org token region_url as API base URL ([#3377](https://github.com/getsentry/sentry-cli/pull/3377))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against 027e7f3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant