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
This commit is contained in:
Sag 2024-06-11 09:22:34 +02:00 committed by GitHub
parent 9ef92035f6
commit fde40e9d85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;