details: https://code.tryton.org/tryton/commit/933c1cc5765a
branch: default
user: Cédric Krier <[email protected]>
date: Sat Aug 15 08:05:22 2026 +0200
description:
Remove unreachable GATEWAY TIMEOUT in JSON-RPC retry
Only SERVICE UNAVAILABLE error code is retried.
diffstat:
tryton/tryton/jsonrpc.py | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diffs (14 lines):
diff -r 3e2a195d2b33 -r 933c1cc5765a tryton/tryton/jsonrpc.py
--- a/tryton/tryton/jsonrpc.py Sat Aug 15 08:03:57 2026 +0200
+++ b/tryton/tryton/jsonrpc.py Sat Aug 15 08:05:22 2026 +0200
@@ -312,10 +312,6 @@
delay = int(
e.headers.get('Retry-After', count))
except ValueError:
- if isinstance(
- e.errcode, HTTPStatus.GATEWAY_TIMEOUT):
- # Do not retry on timeout without delay
- raise
delay = count
delay = min(delay, 10)
time.sleep(delay)