Skip to content

fix(crons): Don't panic when passing --auth-token#2172

Merged
szokeasaurusrex merged 1 commit intomasterfrom
szokeasaurusrex/monitors-run-auth-token
Oct 22, 2024
Merged

fix(crons): Don't panic when passing --auth-token#2172
szokeasaurusrex merged 1 commit intomasterfrom
szokeasaurusrex/monitors-run-auth-token

Conversation

@szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Sep 30, 2024

The --auth-token argument is hidden from the sentry-cli monitors run subcommand since the command uses DSN authentication, however passing the argument is still possible (it is simply ignored).

However, providing this argument causes a panic with a not-very-user-friendly message, since the argument was defined here without the auth token parser, and we attempt to read the auth token as an AuthToken.

This PR fixes the bug.

Fixes #2170

The `--auth-token` argument is hidden from the `sentry-cli monitors run` subcommand since the command uses DSN authentication, however passing the argument is still possible (it is simply ignored).

However, previously providing this argument caused a panic with a not-very-user-friendly message, since the argument was defined here without the auth token parser, and we attempt to read the auth token as an AuthToken.

This PR fixes the bug.

Fixes #2170
@szokeasaurusrex szokeasaurusrex merged commit 7160d52 into master Oct 22, 2024
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/monitors-run-auth-token branch October 22, 2024 14:34
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.

Panic with --auth-token argument

2 participants