-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ignoreErrors
stopped working
#6173
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
Comments
Hey @geryit, we could not reproduce this issue. Can you provide a reproduction for this issue? |
@AbhiPrasad this is happening in https://carbonhealth.com |
Maybe this is related to what I am seeing in #6287? Seems to be also some sort of filtering bug. |
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 🥀 |
We are still having this issue |
I have recently seen some errors that were ignored show up. |
If you're having this issue please provide a reproduction example we can use to debug. Thanks! |
We fixed our problem using const ignorableErrors = [
/Failed to register a ServiceWorker for scope/,
/Hydration failed because the initial UI does not match what was rendered on the server/,
/There was an error while hydrating/,
/Minified React error #418/,
];
beforeSend(event, hint) {
const errorMsg = hint.originalException?.toString();
if (errorMsg && ignorableErrors.some(regex => regex.test(errorMsg))) {
return null;
}
return event;
}, |
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which package are you using?
@sentry/nextjs
SDK Version
7.18.0
Framework Version
React 18.2.0
Link to Sentry event
https://sentry.io/organizations/carbon/issues/3727932656/?referrer=slack
Steps to Reproduce
We upgraded Sentry from
7.17.4
to7.18.0
and our ignored strings are started to be logged again.our conf looks like this
Expected Result
errors not to be logged
Actual Result
errors are logged
The text was updated successfully, but these errors were encountered: