From 0ac32597a64420c3d75b1d92bfccd807efd05097 Mon Sep 17 00:00:00 2001 From: epwalsh Date: Wed, 7 Sep 2022 08:55:47 -0700 Subject: [PATCH] Treat 500 errors as recoverable --- CHANGELOG.md | 4 ++++ beaker/client.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 462bc4a..18485e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ use patch releases for compatibility fixes instead. ## Unreleased +### Fixed + +- 500 errors from server treated as recoverable. + ## [v1.7.3](https://github.com/allenai/beaker-py/releases/tag/v1.7.3) - 2022-09-06 ### Fixed diff --git a/beaker/client.py b/beaker/client.py index 97fe715..2e40a78 100644 --- a/beaker/client.py +++ b/beaker/client.py @@ -55,7 +55,7 @@ class Beaker: """ - RECOVERABLE_SERVER_ERROR_CODES = (429, 502, 503, 504) + RECOVERABLE_SERVER_ERROR_CODES = (429, 500, 502, 503, 504) MAX_RETRIES = 5 API_VERSION = "v3"