From 48e5c0984e8b735c841bcc3b0973d055948e9974 Mon Sep 17 00:00:00 2001 From: Dominik Schulz Date: Sun, 27 Jul 2025 17:14:06 +0200 Subject: [PATCH] Mark HTTP Error 507 as permanent This change classifies HTTP error 507 (Insufficient Storage) as a permanent error that should not be retried. I keep running into this once in a while and there is literally no point in retrying when the server is full. Fixes #5429 Signed-off-by: Dominik Schulz --- internal/backend/rest/rest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend/rest/rest.go b/internal/backend/rest/rest.go index 8df91beb3..5776f284f 100644 --- a/internal/backend/rest/rest.go +++ b/internal/backend/rest/rest.go @@ -182,7 +182,7 @@ func (b *Backend) IsPermanentError(err error) bool { var rerr *restError if errors.As(err, &rerr) { - if rerr.StatusCode == http.StatusRequestedRangeNotSatisfiable || rerr.StatusCode == http.StatusUnauthorized || rerr.StatusCode == http.StatusForbidden { + if rerr.StatusCode == http.StatusRequestedRangeNotSatisfiable || rerr.StatusCode == http.StatusUnauthorized || rerr.StatusCode == http.StatusForbidden || rerr.StatusCode == http.StatusInsufficientStorage { return true } }