From 92aa6a8e1a943ca49db912273adcbf8bf6e676fd Mon Sep 17 00:00:00 2001 From: Marie <51697796+ijreilly@users.noreply.github.com> Date: Tue, 27 May 2025 10:43:26 +0200 Subject: [PATCH] filter out 500 errors from sentry-captured errors in FE (#12307) Since https://github.com/twentyhq/twenty/pull/12286 we are now capturing in sentry graphql queries errors in the FE. We want to exclude InternalServerErrors because they are already captured in sentry from the BE. --- .../twenty-front/src/modules/apollo/services/apollo.factory.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts b/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts index 3bad70273..fcceb9196 100644 --- a/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts +++ b/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts @@ -137,6 +137,9 @@ export class ApolloFactory implements ApolloManager { case 'FORBIDDEN': { return; } + case 'INTERNAL_SERVER_ERROR': { + return; // already caught in BE + } default: if (isDebugMode === true) { logDebug(