From 20b623cef601422c609fc5f6b801cedcf89d5840 Mon Sep 17 00:00:00 2001 From: Tanmoy Sarkar <57363826+tanmoysrt@users.noreply.github.com> Date: Mon, 10 Feb 2025 22:55:14 +0530 Subject: [PATCH] fix(snapshot): Check for status code 417 HTTP Status Code 417 returned while using frappe.throw --- agent/database_physical_backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/database_physical_backup.py b/agent/database_physical_backup.py index 13af2850..0a85c575 100644 --- a/agent/database_physical_backup.py +++ b/agent/database_physical_backup.py @@ -243,7 +243,7 @@ def create_snapshot(self): "key": self.snapshot_request_key, }, ) - if response.status_code in [500, 502, 503, 504] and retries <= 10: + if response.status_code in [417, 500, 502, 503, 504] and retries <= 10: retries += 1 time.sleep(15 + randint(2, 8)) continue