Skip to content

Commit 08e6ff5

Browse files
iHiDclaude
andcommitted
Filter non-actionable "Non-Error promise rejection" errors from Sentry
These are unhandled promise rejections where a non-Error value was rejected (e.g. a plain string). They have no stack trace and are not actionable. Closes #8454 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b2eea99 commit 08e6ff5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app/javascript/utils/react-bootloader.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ if (process.env.SENTRY_DSN) {
9797
})
9898
if (isObfuscatedExtensionError) return null
9999

100+
// Drop non-actionable promise rejections with non-Error values
101+
// (no stack trace, arbitrary strings from third-party code or browser extensions)
102+
const isNonErrorRejection = event.exception?.values?.some((ex) =>
103+
ex.value?.includes('Non-Error promise rejection captured with value:')
104+
)
105+
if (isNonErrorRejection) return null
106+
100107
const tag = document.querySelector<HTMLMetaElement>(
101108
'meta[name="user-id"]'
102109
)

0 commit comments

Comments
 (0)