Skip to content

Retry ClientException from package:http #8337

@jonasfj

Description

@jonasfj

We should probably also retry ClientException from package:http:

retryIf: (e) {
if (e is TimeoutException) {
return true; // Timeouts we can retry
}
if (e is IOException) {
return true; // I/O issues are worth retrying
}
if (e is DetailedApiRequestError) {
final status = e.status;
return status == null || status >= 500; // 5xx errors are retried
}
return e is ApiRequestError; // Unknown API errors are retried
},

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions