From 7c9f821bfd9907d770f82286e618b6f9d8db113d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 23 Nov 2021 23:29:25 +0100 Subject: [PATCH] web: attempt to drop fetch errors Signed-off-by: Jens Langhammer --- web/src/api/Sentry.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/api/Sentry.ts b/web/src/api/Sentry.ts index c8890f19e..ec4d897ba 100644 --- a/web/src/api/Sentry.ts +++ b/web/src/api/Sentry.ts @@ -34,6 +34,9 @@ export function configureSentry(canDoPpi: boolean = false): Promise { if ((hint.originalException as Error | undefined)?.name == 'NetworkError') { return null; } + if ((hint.originalException as Error | undefined)?.name.includes("fetch")) { + return null; + } } if (hint.originalException instanceof Response || hint.originalException instanceof DOMException) { return null;