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.
This commit is contained in:
Marie
2025-05-27 10:43:26 +02:00
committed by GitHub
parent 9cdd0fdac0
commit 92aa6a8e1a

View File

@ -137,6 +137,9 @@ export class ApolloFactory<TCacheShape> implements ApolloManager<TCacheShape> {
case 'FORBIDDEN': {
return;
}
case 'INTERNAL_SERVER_ERROR': {
return; // already caught in BE
}
default:
if (isDebugMode === true) {
logDebug(