From b4e2294380f27fa660ab07198d28ce1687299ef9 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Thu, 29 Jan 2026 23:55:55 +0700 Subject: [PATCH] fix: mute account unauthorized error --- server/account/src/operations.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/account/src/operations.ts b/server/account/src/operations.ts index 078154196ee..dd653f0efc0 100644 --- a/server/account/src/operations.ts +++ b/server/account/src/operations.ts @@ -1667,7 +1667,10 @@ export async function getLoginInfoByToken ( accountUuid = sub ?? account } catch (err: any) { Analytics.handleError(err) - ctx.error('Invalid token', { token, errMsg: err.message }) + if (token !== undefined) { + // do not spam errors as this is expected when we issue request with no token + ctx.error('Invalid token', { token, errMsg: err.message }) + } switch (err.message) { case 'Token not yet active': { const { nbf } = decodeToken(token, false)