diff --git a/plugins/sentry/src/api/production-api.ts b/plugins/sentry/src/api/production-api.ts index 0632da711e..37a735df14 100644 --- a/plugins/sentry/src/api/production-api.ts +++ b/plugins/sentry/src/api/production-api.ts @@ -55,15 +55,11 @@ export class ProductionSentryApi implements SentryApi { if (!this.identityApi) { return {}; } - try { - const token = await this.identityApi.getIdToken(); - return { - headers: { - authorization: `Bearer ${token}`, - }, - }; - } catch (e) { - return {}; - } + const token = await this.identityApi.getIdToken(); + return { + headers: { + authorization: `Bearer ${token}`, + }, + }; } }