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.

Non-Error exception captured with keys: error, headers, message, name, ok

See original GitHub issue

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:
  • @angular/core

Version:

5.7.1 (@sentry/browser)
8.2.11 (@angular/core)

Description

I have initial setup for Angular app with global ErrorInterceptor here how I send it

    const eventId = Sentry.captureException(error.originalError || error);
    Sentry.showReportDialog({ eventId });

and I get this (Non-Error exception captured with keys: error, headers, message, name, ok) error again and again, and can’t understand what is wrong from the description and how to reproduce it.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:55 (20 by maintainers)

github_iconTop GitHub Comments

39reactions
szechyjscommented, Feb 14, 2020

We are currently using the following to ignore it.

Sentry.init({
  ignoreErrors: [
    'Non-Error exception captured'
  ]
});
18reactions
kamilogorekcommented, Mar 16, 2020

Closing the issue, as it seems like the original issue has been partially resolved or there is a working solution. I’d prefer someone to create a new issue with a fresh description if it’s still an issue. Please do not hesitate to ping me if it is still relevant, and I will happily reopen and work on it. Cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I seeing events with "Non-Error exception (or promise ...
If you're seeing errors having the message "Non-Error exception (or promise rejection) captured with keys: x, y, z.
Read more >
Non-Error exception captured with keys: _abort, _raw, body ...
Hello! I'm using the Sentry node client (v4.1.1) and I'm trying to log server errors using hapi.js. In the catch block of my...
Read more >
Non-Error exception captured with keys: _bodyBlob, _bodyInit ...
Sentry Issue: MOBILE-7 Error: Non-Error exception captured with... ... exception captured with keys: _bodyBlob, _bodyInit, headers, ok…
Read more >
Troubleshooting for Angular | Sentry Documentation
To gain visibility into a JavaScript exception thrown from scripts ... This also helps to prevent tracking of any parent application errors in...
Read more >
Event: Non-Error promise rejection captured with keys
Event: Non-Error promise rejection captured with keys: currentTarget, isTrusted, target, type.
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