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:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user