getsentry / sentry-cli

A command line utility to work with Sentry.
https://docs.sentry.io/cli/
BSD 3-Clause "New" or "Revised" License
896 stars 222 forks source link

explain sourcemaps crash #1264

Closed tiguchi closed 2 years ago

tiguchi commented 2 years ago

Environment

Steps to Reproduce

I'm trying to troubleshoot problems with deobfuscating stacktraces. When I run the sentry-cli sourcemaps explain command then I get to see the following output and something that looks like a crash message:

❯ pnpm sentry-cli sourcemaps explain --org <my org> --project <project slug> <event ID>
✔ Fetched data for event: <...>
✔ Event has release name: 1.0
✔ Event has a valid exception present
✔ Event has a valid stacktrace present
⚠ Exception is already source mapped and resolves to:

thread 'unnamed' panicked at 'called `Option::unwrap()` on a `None` value': src/commands/sourcemaps/explain.rs:312

   0: backtrace::backtrace::trace

I assume that "panicked" bit is not part of the explanation and a sentry-cli crash instead?

Expected Result

I expect to see what the exception's source map resolves to :smile:

kamilogorek commented 2 years ago

Fixed in https://github.com/getsentry/sentry-cli/commit/255209d4928620e5f512385f49195a7f5660377f Will release it tomorrow :)