diff --git a/packages/client-app/src/flux/nylas-api-request.es6 b/packages/client-app/src/flux/nylas-api-request.es6 index 52d30bbdd..b7b163ae8 100644 --- a/packages/client-app/src/flux/nylas-api-request.es6 +++ b/packages/client-app/src/flux/nylas-api-request.es6 @@ -124,7 +124,7 @@ export default class NylasAPIRequest { ] if (!ignorableStatusCodes.includes(apiError.statusCode)) { const msg = apiError.message || `Unknown Error: ${apiError}` - const fingerprint = ["{{ default }}", "local api", apiError.statusCode, msg]; + const fingerprint = ["{{ default }}", "api error", apiError.statusCode, msg]; NylasEnv.reportError(apiError, {fingerprint: fingerprint}); apiError.reported = true } diff --git a/packages/client-sync/src/local-sync-worker/sync-worker.es6 b/packages/client-sync/src/local-sync-worker/sync-worker.es6 index 42786352d..c22ea796d 100644 --- a/packages/client-sync/src/local-sync-worker/sync-worker.es6 +++ b/packages/client-sync/src/local-sync-worker/sync-worker.es6 @@ -192,12 +192,6 @@ class SyncWorker { const {statusCode} = err this._logger.error(`🔃 Unable to refresh access token. Got status code: ${statusCode}`, err); - if (statusCode >= 500) { - // Even though we don't consider 500s as permanent errors when - // refreshing tokens, we want to report them - const fingerprint = ["{{ default }}", "access token refresh", statusCode, err.message]; - NylasEnv.reportError(err, {fingerprint: fingerprint}) - } const isNonPermanentError = ( // If we got a 5xx error from the server, that means that something is wrong // on the Nylas API side. It could be a bad deploy, or a bug on Google's side.