Skip to content

Commit e0c395d

Browse files
authored
Retry storage on http ClientException (#8355)
1 parent a08182c commit e0c395d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/lib/shared/storage.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ extension BucketExt on Bucket {
146146
if (e is IOException) {
147147
return true; // I/O issues are worth retrying
148148
}
149+
if (e is http.ClientException) {
150+
return true; // HTTP issues are worth retrying
151+
}
149152
if (e is DetailedApiRequestError) {
150153
final status = e.status;
151154
return status == null || status >= 500; // 5xx errors are retried

0 commit comments

Comments
 (0)