Skip to content

Commit 79813af

Browse files
committed
Suppress Sentry password manager error; see getsentry/sentry-javascript#3440
1 parent 8af5c10 commit 79813af

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

nuxt.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,18 @@ module.exports = {
540540
return false
541541
}
542542
}
543+
} else if (
544+
hint.originalException.name === 'UnhandledRejection' &&
545+
hint.originalException.message.indexOf(
546+
'Object Not Found Matching Id'
547+
) === 0
548+
) {
549+
// This seems to be a spurious error caused by a password manager. SEe
550+
// https://github.com/getsentry/sentry-javascript/issues/3440
551+
console.log(
552+
'Suppress Object Not Found Matching Id, probable password manager'
553+
)
554+
return false
543555
}
544556
}
545557

0 commit comments

Comments
 (0)