Skip to content
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

fix: ignore Cannot redefine property error in sentry #1050

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/shared/utils/query-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@ function shouldIgnore(e: Error): boolean {
return true
}

/*
com.okex.wallet injects code that causes this error
Examples: https://balancer-labs.sentry.io/issues/5687846148/
*/
if (e.message.startsWith('Cannot redefine property:') && e.stack?.includes('inject.bundle.js')) {
return true
}

/*
Wagmi error which does not crash.
Can be reproduced by:
Expand Down
Loading