Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--print-token crashes if MOZ_TOKEN set #61

Open
abhillman opened this issue Sep 24, 2023 · 1 comment
Open

--print-token crashes if MOZ_TOKEN set #61

abhillman opened this issue Sep 24, 2023 · 1 comment

Comments

@abhillman
Copy link

abhillman commented Sep 24, 2023

Repro:

  1. $ export MOZ_TOKEN=...
  2. $ mozwire --print-token
  3. 💥
]$ RUST_BACKTRACE=full mozwire --print-token
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Builder, source: http::Error(InvalidHeaderValue) }', src/main.rs:178:18
stack backtrace:
   0:     0x561512e8897c - <unknown>
   1:     0x561512cdaefe - <unknown>
   2:     0x561512e9d644 - <unknown>
   3:     0x561512e8874f - <unknown>
   4:     0x561512e9da1f - <unknown>
   5:     0x561512e9e651 - <unknown>
   6:     0x561512e88db4 - <unknown>
   7:     0x561512e88d16 - <unknown>
   8:     0x561512e9def1 - <unknown>
   9:     0x561512c3dee2 - <unknown>
  10:     0x561512c3e372 - <unknown>
  11:     0x561512c6c9cc - <unknown>
  12:     0x561512c4b083 - <unknown>
  13:     0x561512c7cb7a - <unknown>
  14:     0x7fe092170ace - __libc_start_call_main
  15:     0x7fe092170b89 - __libc_start_main@@GLIBC_2.34
  16:     0x561512c49795 - <unknown>
  17:                0x0 - <unknown>

Expected behavior:

I'm not sure. Perhaps an error that says that MOZ_TOKEN is currently set. Alternatively, a warning message with the typical behavior of mozwire --print-token (i.e. opening a browser).

@NilsIrl
Copy link
Owner

NilsIrl commented Sep 24, 2023

Would it be possible try with a debug build?

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

No branches or pull requests

2 participants