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

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

Open
Lvovk opened this issue Apr 10, 2024 · 4 comments

Comments

@Lvovk
Copy link

Lvovk commented Apr 10, 2024

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
Copy link

getsantry bot commented Apr 10, 2024

Assigning to @getsentry/support for routing ⏲️

@InterstellarStella InterstellarStella transferred this issue from getsentry/sentry Apr 10, 2024
@Lms24
Copy link
Member

Lms24 commented Apr 12, 2024

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:

  • tell us your SDK version
  • show your Sentry.init code
  • tell us how to reproduce this behaviour in a minimal reproduciton.
    Or, ideally, provide a Stackblitz/GH repo or similar with a working minimal reproducible example. thanks!

@Lvovk
Copy link
Author

Lvovk commented Apr 15, 2024

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
Copy link
Member

Lms24 commented Apr 15, 2024

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 <script> tag? On button click?

Generally, the SDK should try to generate a stack trace, even if the value that's captured (e.g. just a string) doesn't have a stacktrace attached. So I'm wondering where things go wrong here.

As you can see, there are quite a few variables to debug this properly. I assume you're adding Sentry to a non-trivial application - any chance you can narrow it down to a more minimal example and post it as a stackblitz or GitHub repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants