question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set handled/unhandled state

See original GitHub issue

Currently there is no easy way to set the handled/unhandled state for an error. This makes the stability score useless to us.

In our JS app we are catching all exceptions, for logging + sending to Bugsnag. While we do “handle” the exception, in the sense that we’re catching it, the user will see an error message.

So, from a stability perspective it wasn’t handled. Thus, we’d like these errors to worsen the Bugsnag stability score. And for that to work we’d like to set the handled/unhandled state via notify.

See similar issue for ruby: https://github.com/bugsnag/bugsnag-ruby/issues/549

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
johnkiely1commented, Oct 20, 2020

Hi @sandstrom,

Nothing new to report on timeframes on this yet. We are still looking to address this across all of our platform specific notifiers which makes this a bigger piece of work to implement. Other priorities have meant this has slipped somewhat. Updates will be added here when we have them.

0reactions
sandstromcommented, Jan 8, 2021

Awesome! 🎉 Tried it just now, works great!

Would still expect the latest release to be available in NPM, even though all bug fixes therein only pertain to certain platforms.


Somewhat related (since it affects session counting and stability scores, which this is related to):

uBlock seems to be blocking Bugsnag.

  1. Would it be possible for us to send “a user was active and this is the user agent string, ip, etc” request from our backend, for tracking ‘user stability’. That way we wouldn’t be affected by session tracking being blocked? Something you have thought of or discussed internally?

  2. Ideally we’d also pipe error reports through our backend, since those are being blocked too.

Stability score is less useful if ~30% of users aren’t included (due to ad blockers).

Opened an issue about it: https://github.com/bugsnag/bugsnag-js/issues/1228

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Which .config element affects exception handling with ...
I have a Windows Forms application that has this code in the program's start up: Application.SetUnhandledExceptionMode(UnhandledExceptionMode.
Read more >
Handle errors in ASP.NET Core | Microsoft Learn
By Tom Dykstra. This article covers common approaches to handling errors in ASP.NET Core web apps. See Handle errors in ASP.
Read more >
Handle Lambda service exceptions - AWS Step Functions
As a best practice, proactively handle these exceptions in your state machine to Retry invoking your Lambda function, or to Catch the error....
Read more >
Unhandled Exceptions - Avalonia UI
The reason is, that one cannot know if the exception has been handled correctly and therefore the application may be in an invalid...
Read more >
Unhandled Exceptions in Blazor Server with Error Boundaries
Let's look at error boundaries in Blazor, a new feature that allows you to handle Blazor Server unhandled exceptions more easily.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found