getsentry / sentry-javascript-bundler-plugins

JavaScript Bundler Plugins for Sentry
https://sentry.io
BSD 3-Clause "New" or "Revised" License
141 stars 36 forks source link

Source map loaded and connected to release, but still don't see any readable trace #519

Closed Lvovk closed 4 months ago

Lvovk commented 7 months ago

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

I wanted to upload source map to sentry, so I could see readable source code and error trace

So, I use webpack plugin this way(pic 1). And it seems to be loading source maps to sentry and connecting it to proper release (pic 2), but I can't see any source-code-mantions (pic 3)

Is it expected? Or how can i Fix it ?

image image image

Expected Result

Source map loaded, connected to release, and I see readable source code trace

Actual Result

Source map loaded, connected to release, but I don't see souce code trace

Product Area

Unknown

Link

No response

DSN

No response

Version

7.106.0

getsantry[bot] commented 7 months ago

Assigning to @getsentry/support for routing ⏲️

Lms24 commented 7 months ago

Hi @Lvovk!

I think the problem is much rather that there is no stack trace rather than the source code not being unminified with the uploaded source maps. Since you're using Sentry SaaS (sentry.io), can you post a link to the event in Sentry?

Furthermore, to debug this please:

Lvovk commented 7 months ago

Hi @Lms24 ! Thanks for the answear !

Link to the event: https://notsy-b-v.sentry.io/issues/5168873424/events/2fd0e174c105437196a0a3e053d5260e/ My SDK version is 7.106.0 My Sentry init looks like this (img 1)

How to reproduce:

  1. I use webpack plugin, which is suposed to load sourcemap to sentry and it seems to do it
  2. I have added mock errors (tried "Throw" experssions, syntax errors and ETC) inside my code and started the page
  3. I see those errors on sentry, but can't see the trace

image

Lms24 commented 7 months ago

I have added mock errors (tried "Throw" experssions, syntax errors and ETC) inside my code and started the page

I looked at the event you linked and I can confirm that the SDK did not send a stack trace to Sentry. How exactly are you throwing and capturing this error? Are you using Sentry.captureMessage/Sentry.captureException or are you simply doing something like throw('test string')? Also where are you throwing the error? Any chance it's directly in a Githubissues.

  • Githubissues is a development platform for aggregating issues.