-
-
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
Non-Error exception captured with keys: currentTarget, isTrusted, target, type #7941
Comments
This is similar to the sibling task except
Although the doc says I should tell where does this structure come from, but I cannot really tell
|
Hi @SunStupic thanks for writing in! Unfortunately, I can't really tell you either where this error is coming from. You mentioned #6199 already and I also think that this is related. Maybe it is also some script that failed to load. Just that it errored instead of throwing a promise rejection. It's very hard for us to diagnose these issues without a reproduction. Happy to look into it if there's a way to reproduce this. If you you don't want to see this issue, I suggest you use Sentry.init({
dsn: 'your_dsn',
// ...
beforeSend: (event) => {
const exception = event.exception?.values && event.exception?.values[0]
if (exception?.value === 'Non-Error exception captured with keys: currentTarget, isTrusted, target, type') {
return null;
}
return event;
}
}) |
What's interesting is we've got a spike of these happening as well on the sentry frontend. From looking at Replays with this error, it seems to not impacting the user experience, so it's probably something we can safely ignore. |
This seems to overlap with #2546 ? We've had a spike in these occurrences also over the last 2 weeks across various web apps, inc. those with no codebase changes whatsoever. |
Not sure what is going on here, especially since it's happening in all browsers. Basically this occurs because something is running Perhaps we should just filter these server side tbh. |
Hey. ;) I was able to debug when this problem occurs. In a situation where "ErrorEvent: ResizeObserver loop limit exceeded" occurs, the event in method "beforeSend" appears as "ErrorEvent: Non-Error exception captured with keys: currentTarget, isTrusted, target, type". This may lead to a fix for the problem. Interestingly, it worked fine in older versions: |
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 🥀 |
I have a similar error on my Vue+Vuetify website:
__serialized__ = {
currentTarget: [object Window],
isTrusted: False,
target: [object Window],
type: unhandledrejection
} It happened twice in the past week on Firefox 113, but I cannot reproduce it myself and I don't know why it happens. I use Will this error be filtered on Sentry servers in the future? Or, is it possible to get more useful details about such errors (stack trace, what those |
Yes, my investigation ended at |
This PR adjusts the exception name generation for non-error objects in the browser SDK. ref #7941
FYI, we have just merged a PR that, while not fully addressing the issues outlined here, should at least help a bit with clearing this up: #8374 With this PR, the error messages should at least be clearer. When an Event is captured by What this does not address is why sometimes there is no stack track. TBH I am not quite sure why this is happening, as for non-error exception we should be using a syntethic exception to get some stack trace at least. So this remains open for investigation 🤔 |
I encountered an error similar to this
EnvironmentI'm using Behavior
FYI, this doesn't affect users at all but causes uncertainty due to so many reported errors. Maybe this can help someone |
@dav-q do you use Sentry SaaS (sentry.io)? If so, could you share a link to such a captured event? I don't really see how/when this kind of message would still be generated in the source code in a current version, but maybe I am missing something somewhere...! |
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 remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
@mydea i'm also tracking the same symptom and we're on sentry saas. what's the best way for me to privately share an event link? |
I sent you an email (got your email from your website, hope it's the correct one)! |
Just shortly following up here as well, @davidszotten in your case you're running an old version of the SDK (6.x), we shipped this change in v 7.57.0! |
thanks for pointing me in the right direction @mydea . sadly bumping the sdk just seems to have replaced that error with Event |
@davidszotten yeah, that can still happen in the latest version of the SDK. Basically, this is an error where we just don't seem to have more info than Sentry.init({
ignoreErrors: ['Event `ErrorEvent` captured as exception with message `Script error.`']
}); Does that work for you? |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
Sentry Browser CDN bundle
SDK Version
latest
Framework Version
[email protected]
Link to Sentry event
https://workstream-is.sentry.io/issues/4086742434/?project=6108198&referrer=jira_integration
SDK Setup
Steps to Reproduce
No we cannot reproduce it.
Expected Result
No event object should be thrown as error
Actual Result
Weird empty event object is thrown
The text was updated successfully, but these errors were encountered: