From 69e0e527ca91c8f0460ba5fa5a6de457f73a2453 Mon Sep 17 00:00:00 2001 From: Matteo Barbieri Date: Tue, 26 Sep 2023 10:20:20 +0200 Subject: [PATCH] fix: do not retry on bad requests (#248) --- sdcclient/_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdcclient/_common.py b/sdcclient/_common.py index 94fff62..8d05d2f 100644 --- a/sdcclient/_common.py +++ b/sdcclient/_common.py @@ -10,7 +10,7 @@ class SysdigHTTPAdapter(HTTPAdapter): def __init__(self, *args, **kwargs): retry_strategy = Retry( total=3, - status_forcelist=[403, 404, 429, 500, 502, 503, 504], + status_forcelist=[500, 502, 503, 504], allowed_methods=["HEAD", "GET", "OPTIONS", "PUSH", "PUT"], backoff_factor=2, )