Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit b0dc36f

Browse files
committed
fix: ignore "unauthorized" errors in Sentry
Pass ignoreErrors: ['unauthorized'] to initLogger so the Sentry SDK drops events whose exception message is "unauthorized" — these are client-side auth failures from score-api, expected as 4xx responses, not actionable at the SDK level. Removes ~25k events/cycle across SNAPSHOT-SEQUENCER-26/-37/-38. Filtering happens in @snapshot-labs/snapshot-sentry via Sentry's built-in ignoreErrors option (snapshot-labs/snapshot-sentry#18) — no local capture wrapper needed.
1 parent 3408cf1 commit b0dc36f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import refreshVotesVpValue from './helpers/votesVpValue';
2222
const app = express();
2323

2424
async function startServer() {
25-
initLogger();
25+
initLogger({ ignoreErrors: ['unauthorized'] });
2626
refreshModeration();
2727
refreshProposalsVpValue();
2828
refreshProposalsScoresValue();

0 commit comments

Comments
 (0)