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.

UnhandledRejection: Non-Error promise rejection captured with value: Timeout

See original GitHub issue

Package + Version

@sentry/browser@5.13.0

Description

We are receiving a high volume of exceptions that follow the same signature. They occur across all pages, and in all sorts of places with seemingly no discernible pattern. It occurs across all browsers with frequency roughly the same as usage.

UnhandledRejection Non-Error promise rejection captured with value: Timeout

In all cases the Exception is missing. There is no stack trace or additional information.

I’m pretty certain this is originating from third-party code, but without more information to go on I’ve been unable to pin this down.

I’m opening this as a bug because it feels like Sentry should be reporting additional information to help pinpoint the source of the error.

There is an existing issue for this that has been closed without any resolution: https://github.com/getsentry/sentry-javascript/issues/2210

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

33reactions
kamilogorekcommented, Mar 25, 2020

The issue lies exactly there: https://www.gstatic.com/recaptcha/releases/P6KLRNy7h3K160ZmYNUOAce7/recaptcha__en.js

c.reject("Timeout ("+y+")")

or

H((vn.delete(P),"Timeout")

tl;dr - they reject with a primitive value, but should with new Error("timeout").

In this case, your best solution until they fix it is to ignore this kind of errors.

Sentry.init({
  beforeSend(event, hint) {
    if (hint.originalException === "Timeout") return null;
    return event;
  }
});
17reactions
Undistractioncommented, Mar 25, 2020

@JustFly1984 Yep. That’s Google for for you. No sheets given.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Non-Error promise rejection captured with value - #sentry
I'm getting tons of errors from from what appears to be a recursive call generating a lot of errors from one unhandled exception:...
Read more >
Non-Error promise rejection captured with value: undefined
Pass something in reject('something went wrong')) ;. It's empty ( undefined ) that's why you see that error.
Read more >
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 >
Window: unhandledrejection event - Web APIs | MDN
A value or Object indicating why the promise was rejected, as passed to Promise.reject() . Event handler aliases. In addition to the Window ......
Read more >
Tracking Unhandled Promise Rejections - TrackJS
If an error condition arises inside a promise, you “reject” the promise by calling ... throws up its hands and produces a global...
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