From 6cbf0980c5e18e82377529c9cded1a2745bfdf55 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Tue, 14 Apr 2026 06:40:41 +0200 Subject: [PATCH] fix: filter HTTPClientError and DiscordStateException from sentry --- lib/main.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index e7207464..f5fbc1a1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -226,6 +226,10 @@ FutureOr _beforeSend(SentryEvent event, Hint _) { if (v != null && (v.contains('SQLITE_FULL') || v.contains('No space left on device'))) { return true; } + // Native HTTP errors from CFNetwork (server errors, not actionable) + if (e.type == 'HTTPClientError') return true; + // Discord RPC errors when Discord is not running + if (e.type == 'DiscordStateException') return true; return false; }