From 11d0133f19707450de0ce15cf715b1ac57511e9d Mon Sep 17 00:00:00 2001 From: rlyu Date: Thu, 2 May 2024 10:00:07 -0700 Subject: [PATCH] Add 403 to default retry status --- invertedai/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invertedai/utils.py b/invertedai/utils.py index 7ebf27ca..ec22f2cf 100644 --- a/invertedai/utils.py +++ b/invertedai/utils.py @@ -75,7 +75,7 @@ def __init__(self): ) self._base_url = self._get_base_url() self._max_retries = float("inf") - self._status_force_list = [408, 429, 500, 502, 503, 504] + self._status_force_list = [403, 408, 429, 500, 502, 503, 504] self._base_backoff = 1 # Base backoff time in seconds self._backoff_factor = 2 self._jitter_factor = 0.5