From b7c943fcc50a5a1103fac56660e58ae22a030580 Mon Sep 17 00:00:00 2001 From: Istvan Soos Date: Wed, 4 Dec 2024 09:23:49 +0100 Subject: [PATCH] Retry storage on http ClientException --- app/lib/shared/storage.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/lib/shared/storage.dart b/app/lib/shared/storage.dart index c534820181..2e7af04eca 100644 --- a/app/lib/shared/storage.dart +++ b/app/lib/shared/storage.dart @@ -146,6 +146,9 @@ extension BucketExt on Bucket { if (e is IOException) { return true; // I/O issues are worth retrying } + if (e is http.ClientException) { + return true; // HTTP issues are worth retrying + } if (e is DetailedApiRequestError) { final status = e.status; return status == null || status >= 500; // 5xx errors are retried