From e2842a3bbcd63062a3cfdadfd618c3a7be749354 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Mon, 8 May 2023 15:23:56 +0200 Subject: [PATCH] Ignore 402 errors in sentry --- client/src/graphql/client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/graphql/client.js b/client/src/graphql/client.js index 9d2d0290..f483be91 100644 --- a/client/src/graphql/client.js +++ b/client/src/graphql/client.js @@ -43,6 +43,9 @@ export default function(uri, networkErrorCallback) { const errorLink = onError(({ networkError, graphQLErrors }) => { if (networkError && networkErrorCallback) { networkErrorCallback(networkError.statusCode); + if (networkError.statusCode == 402) { // not authenticated, we don't need to continue here + return; + } } if (graphQLErrors) {