From fde40e9d8524158bbb5da4fcb7f6f04819a31a59 Mon Sep 17 00:00:00 2001 From: Sag Date: Tue, 11 Jun 2024 09:22:34 +0200 Subject: [PATCH] Removed Sentry error on multiple request attempts (#20360) refs https://linear.app/tryghost/issue/SLO-146 - this Sentry error is not a user-facing error - the request is retried if it fails the first time --- apps/admin-x-framework/src/utils/api/fetchApi.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/admin-x-framework/src/utils/api/fetchApi.ts b/apps/admin-x-framework/src/utils/api/fetchApi.ts index 0967185340..a26121767a 100644 --- a/apps/admin-x-framework/src/utils/api/fetchApi.ts +++ b/apps/admin-x-framework/src/utils/api/fetchApi.ts @@ -74,10 +74,6 @@ export const useFetchApi = () => { ...options }); - if (attempts !== 0 && sentryDSN) { - Sentry.captureMessage('Request took multiple attempts', {extra: getErrorData()}); - } - return handleResponse(response) as ResponseData; } catch (error) { retryingMs = Date.now() - startTime;