From bae74b8181bb3678627fafc136fa79fe3bee13b6 Mon Sep 17 00:00:00 2001 From: Josema Camacho Date: Wed, 17 Jun 2026 16:20:17 +0200 Subject: [PATCH] fix(api): ignore RequestAborted from health-check probe disconnects in Sentry (#11632) --- api/CHANGELOG.md | 1 + api/src/backend/config/settings/sentry.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/api/CHANGELOG.md b/api/CHANGELOG.md index 0ddb8ae3f2..db5cc69b03 100644 --- a/api/CHANGELOG.md +++ b/api/CHANGELOG.md @@ -13,6 +13,7 @@ All notable changes to the **Prowler API** are documented in this file. ### 🔄 Changed - Gunicorn worker timeout raised from the 30s default to 120s, so long-running requests are no longer killed prematurely [(#11631)](https://github.com/prowler-cloud/prowler/pull/11631) +- Sentry now drops ASGI's `RequestAborted` errors from health-check probe disconnects on `/health/live` [(#11632)](https://github.com/prowler-cloud/prowler/pull/11632) ### 🔐 Security diff --git a/api/src/backend/config/settings/sentry.py b/api/src/backend/config/settings/sentry.py index 580821f7b2..1f449f782e 100644 --- a/api/src/backend/config/settings/sentry.py +++ b/api/src/backend/config/settings/sentry.py @@ -76,6 +76,8 @@ IGNORED_EXCEPTIONS = [ # PowerShell Errors in User Authentication "Microsoft Teams User Auth connection failed: Please check your permissions and try again.", "Exchange Online User Auth connection failed: Please check your permissions and try again.", + # ASGI: Client disconnected before the response finished (health-check probes on /health/live) + "RequestAborted", ]