From 8a902edbf4bc7ecc894a735204981469d21c9e0b Mon Sep 17 00:00:00 2001 From: Jonathan Petto Date: Wed, 19 Aug 2026 15:32:48 -0500 Subject: [PATCH] chore: stop sending missing JWT error to sentry - non-actionable error at this time, so no reason to be alerted on it --- src/server/context.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/context.ts b/src/server/context.ts index 6a072c07..f350ea68 100644 --- a/src/server/context.ts +++ b/src/server/context.ts @@ -1,5 +1,3 @@ -import * as Sentry from '@sentry/node'; - import { AdminAPIUser, getSigningKeysFromServer, @@ -30,7 +28,9 @@ export async function getAppContext( console.log('Request is missing JWT'); console.log(req); - Sentry.captureException('Request is missing JWT'); + // uncomment below if we ever need sentry reporting on missing JWTs + // (ideally this gets handled at a higher level - e.g. cloud metrics) + // Sentry.captureException('Request is missing JWT'); // throw a generic error if request is missing JWT throw new Error('Internal server error');