diff --git a/octobot/community/supabase_backend/community_supabase_client.py b/octobot/community/supabase_backend/community_supabase_client.py index 8ab80913a..7180d99a8 100644 --- a/octobot/community/supabase_backend/community_supabase_client.py +++ b/octobot/community/supabase_backend/community_supabase_client.py @@ -60,9 +60,9 @@ async def httpx_retrier_wrapper(*args, **kwargs): error = None try: resp: httpx.Response = await f(*args, **kwargs) - if resp.status_code == 502: - # waking up, retry - error = "bad gateway" + if resp.status_code in (502, 503): + # waking up or SLA issue, retry + error = f"{resp.status_code} error {resp.reason_phrase}" else: if i > 0: commons_logging.get_logger(__name__).debug(