From c4a05306087d76460f55021afc05bcac6e81b95a Mon Sep 17 00:00:00 2001 From: Giuseppe De Ponte Date: Wed, 1 Sep 2021 18:06:05 +0200 Subject: [PATCH] fix: add ignored Outlook-related error message to Sentry config See https://github.com/getsentry/sentry-javascript/issues/3440 for more information --- agir/front/components/allPages/sentry.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/agir/front/components/allPages/sentry.js b/agir/front/components/allPages/sentry.js index 7b53e256f5..e3c25f8cac 100644 --- a/agir/front/components/allPages/sentry.js +++ b/agir/front/components/allPages/sentry.js @@ -35,5 +35,11 @@ if (process.env.NODE_ENV === "production") { // We recommend adjusting this value in production, or using tracesSampler // for finer control tracesSampleRate: 0.1, + + ignoreErrors: [ + // Email link Microsoft Outlook crawler compatibility error + // cf. https://forum.sentry.io/t/unhandledrejection-non-error-promise-rejection-captured-with-value/14062 + "Non-Error promise rejection captured with value: Object Not Found Matching Id:", + ], }); }