GeezerVison is showing github.com — Some errors does not have stacktrace at all · getsentry/sentry-javascript · Discussion #9374
Some errors does not have stacktrace at all
#9374
Oct 26, 2023
·
2 comments
·
2 replies
Discussion options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
|
Hi,
We have been using Sentry for a few years, however, since the beginning we always had the same problem.
Lots of reported errors do not have stack traces, and we are not sure why. We assume that it might be because they are from external scripts plugged in by Google Tag Manager, but we are not sure.
So we also assumed that if the error does not have a stack trace, it's not coming from our codebase, and it's not our (developers) problem, but it's a business problem. :)
Are we right? Is there any chance to improve it, and debug even errors without a stack trace? I'm attaching a few examples



|
You must be logged in to vote
Replies:
2 comments
·
2 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
I would recommend setting up Sentry Session Replay, which can help debug why these errors without a stacktrace are happening.
We can only attach a stacktrace if the error thrown in the browser provides one, so these are cases where the error from the browser are not helpful :(
One thing that may be helpful is to emit more breadcrumbs in your application with Sentry.addBreadcrumb. This will help you understand what exactly was happening before the error occured (or if nothing happened at all - then it's probably a chrome extension or something similar causing issues).
|
You must be logged in to vote
0 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
|
Also have this problem, I don't believe I am throwing any strings anywhere in the code base, however I still do not seem to have stack traces.
I would like to still get stack traces even though my code is minified. I also don't want to enable source maps with the Vite plugin as I believe it makes my unminified source code publicly visible. Happy to be corrected if I'm wrong.
|
You must be logged in to vote
2 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks AbhiPrasad, the way it looked like it worked though is it was using inline sourcemaps, so it was embedding the sourcecode at the end of the minified files. I'll admit I didn't spend long looking at it, I panicked that my IP was all public and disabled it immediately.
|