GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

KoderFPV started this conversation in General
Some errors does not have stacktrace at all #9374
@KoderFPV KoderFPV
Oct 26, 2023 · 2 comments · 2 replies
Return to top
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.

KoderFPV
Oct 26, 2023

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

image
image
image

You must be logged in to vote
All reactions

Replies: 2 comments · 2 replies

Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

AbhiPrasad
Oct 26, 2023

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
All reactions
  • 👍 1
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.

AlastairTaft
Sep 23, 2024

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
All reactions
2 replies
@AbhiPrasad
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

AbhiPrasad Sep 23, 2024

@AlastairTaft you can use the sourcemaps.filesToDeleteAfterUpload in the vite plugin to delete sourcemap files after you upload them to sentry so they won't get exposed publically.

We really recommend uploading sourcemaps, it vastly improves the sentry experience.

All reactions
@AlastairTaft
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

AlastairTaft Sep 24, 2024

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.

All reactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💬
General
Labels
None yet
3 participants
@KoderFPV @AlastairTaft @AbhiPrasad
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.