From 821c10b2bdd0d2008636b7c6dcef8d5695c42fd4 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 12 Aug 2020 16:11:22 +0200 Subject: [PATCH] Fix connection reset error on ingress (#1899) --- supervisor/api/ingress.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/supervisor/api/ingress.py b/supervisor/api/ingress.py index b6c69f2a2..c828b50a3 100644 --- a/supervisor/api/ingress.py +++ b/supervisor/api/ingress.py @@ -191,7 +191,11 @@ class APIIngress(CoreSysAttributes): async for data in result.content.iter_chunked(4096): await response.write(data) - except (aiohttp.ClientError, aiohttp.ClientPayloadError) as err: + except ( + aiohttp.ClientError, + aiohttp.ClientPayloadError, + ConnectionResetError, + ) as err: _LOGGER.error("Stream error with %s: %s", url, err) return response