Skip to content

Prefer --url over empty Org Auth Token url #1913

@szokeasaurusrex

Description

@szokeasaurusrex

If an Org Auth Token's payload defines an empty but not null url, then we should prefer the url provided as a command line argument via --url. The current behavior is to raise an error that the two urls don't match, which makes little sense, given that an empty url in the org Auth Token likely indicates a misconfigured Sentry self-hosted instance, and most users would expect the --url to take precedence.

With this change, we would prevent situations like the following: getsentry/sentry-javascript-bundler-plugins#465

Metadata

Metadata

Labels

BugIssue type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions