Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

outgoing_webhook: Lump chunked-encoding errors with connection errors.

Alex Vandiver257cfad66707
diff --git a/zerver/lib/outgoing_webhook.py b/zerver/lib/outgoing_webhook.py
index 9e6a09765ec..bbf1e7ffd5e 100644
--- a/zerver/lib/outgoing_webhook.py
+++ b/zerver/lib/outgoing_webhook.py
@@ -406,7 +406,7 @@ def do_rest_call(
request_retry(event, failure_message=failure_message)
return None
- except requests.exceptions.ConnectionError:
+ except (requests.exceptions.ConnectionError, requests.exceptions.ChunkedEncodingError):
logging.info(
"Trigger event %s on %s resulted in a connection error. Retrying",
event["command"],