From 00a78f372bf0e76e3524fc1579e47973ddf0a52c Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 28 Aug 2025 10:15:32 +0200 Subject: [PATCH] Fix ConnectionResetError during ingress proxing (#6137) Under certain (timing) conditions ConnectionResetError can be raised when the client closes the connection while we are still writing to it. Make sure to handle the appropriate exceptions to avoid flooding the logs with stack traces. --- supervisor/api/ingress.py | 1 + 1 file changed, 1 insertion(+) diff --git a/supervisor/api/ingress.py b/supervisor/api/ingress.py index ec99de4a7..da9dba548 100644 --- a/supervisor/api/ingress.py +++ b/supervisor/api/ingress.py @@ -286,6 +286,7 @@ class APIIngress(CoreSysAttributes): aiohttp.ClientError, aiohttp.ClientPayloadError, ConnectionResetError, + ConnectionError, ) as err: _LOGGER.error("Stream error with %s: %s", url, err)