-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event: Non-Error promise rejection captured with keys: currentTarget, isTrusted, target, type #2546
Comments
We've also started seeing these in the last couple of weeks. I just started looking into it so I don't have any more details on what's causing it. |
Same here, now on Sentry v5.15.5. |
Can someone provide any link to this type of event captured in Sentry? It looks like a script loading error (notice the |
@kamilogorek can you please send me your company email? I can share examples of the events. |
If you need more examples I can send some over as well @kamilogorek -- just let me know. |
@sheelah yes, please |
@sheelah there's not much we can improve here, to be honest. JS doesn't give us more information that we already provide. Whenever an instance of a promise object is rejected, it triggers https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event However, there's nothing that would stop anyone from passing any random stuff in there. Whenever we encounter something that's not a primitive value, an object that contains the stack trace (eg. Unfortunately, I'm not sure if we can make it any more generic to handle more types of input. (answered here instead of to your email, to keep the conversation public for everyone else) |
From my observations:
|
I also just received a report with "Non-Error promise rejection captured with value: null". Similar to what @anton-bot mentioned above the affected user was using Safari 13.1.2 on Mac OS X 10.15.6. I had a look in my compiled app code for |
Have also been seeing this for the past two weeks. On our site we've only seen it on pages that use the google maps javascript API so I have a feeling that it might be related to that. Anyone else seeing this on URLs that use google maps? Edit: So far we've seen the issue on iOS and Android Edit: Additional data:
|
@asbjornh nope I don't have Google Maps in my page |
@kamilogorek Would OP's additional data (and mine) be caused by something like this |
@asbjornh yes, it'd then go through this flow - sentry-javascript/packages/browser/src/eventbuilder.ts Lines 97 to 107 in caff9e7
|
I am also getting same error |
This error just depleted my quota capacity. |
we have 289 events of this in the last 24h - and our page is not even live yet ..
We are using next.js |
same here with cra 😅 |
It seems that this issue is caused by something roughly like this: new Promise((resolve, reject) => {
const script = document.createElement('script');
script.src = src;
script.onload = resolve;
script.onerror = reject;
document.body.appendChild(script);
}); The new Promise((resolve, reject) => {
const script = document.createElement('script');
script.src = src;
script.onload = resolve;
script.onerror = event => {
reject(new Error(`Failed to load ${event.target.src}`));
};
document.body.appendChild(script);
}); |
In my case it was Next.js' The error is much more verbose in the browser, though:
How can we get Sentry to capture this data? |
Very useful @Turbo87! I couldn't find a comparable property for link elements. Is there one, in case the |
BTW - the |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
@huangjihua - At this point, as far as we know, all of the bugs have been worked out here. Docs about this are now here: https://docs.sentry.io/platforms/javascript/troubleshooting/#events-with-non-error-exception. |
Hello everyone
The site is on WordPress with 40 plugins (WPML, YOAST, WooCommerce etc) and we have HubSpot forms integrated into WP pages. As i see in the DevTools it's can be HubSpot form js file only https://js.hsforms.net/forms/v2.js: Any ideas how it's possible to fix this issue? |
latest react SDK 7.27.0 still getting many of those |
Same error on React 18 + Next 13 |
We still seem to be getting this error |
It seems that this should not be closed... we are running angular with latest sentry-ivy and also getting those errors on safari |
I would agree. The documentation update is nice, but I still have no idea what is causing this as I am not doing any of these:
Which also isn't helpful. This is only happening in Safari, so I wonder if it's that or a browser extension, as was the case for the very similar error Non-Error promise rejection captured with value. Should I just add |
Having the same issue as @futzlarson. For us, it's happening almost-exclusively (97%) on iPhone. This is a bind, as it's hard to know what's going on, as nothing obviously relevant in our codebase has changed since we started getting these issue(s) 12 days ago. |
we also started seeing these errors recently (like, two weeks ago) |
I emailed them. Their recommendation was to filter out this specific error, which I plan on doing with |
Still getting this in production, including just 4h ago. And others are, too. I really hope Sentry implements a global suppression for this. |
@felix-berlin to ignore this error, add it to ignoreErrors list
|
I'm doing that and I still get those errors reported on Sentry |
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
My project often catch an error like Event Non-Error promise rejection captured with keys: currentTarget, isTrusted, target, type,without any useful information. And an additional data is
looks like an Event instance. With the limited information,I don't know where this bug is triggered,has anyone encountered the same problem?
The text was updated successfully, but these errors were encountered: