Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry ClientException from package:http #8337

Open
jonasfj opened this issue Nov 25, 2024 · 0 comments
Open

Retry ClientException from package:http #8337

jonasfj opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
Area: stackdriver error report Error reported through Stackdriver Error Reporting Type: bug

Comments

@jonasfj
Copy link
Member

jonasfj commented Nov 25, 2024

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
},

@jonasfj jonasfj added Type: bug Area: stackdriver error report Error reported through Stackdriver Error Reporting labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: stackdriver error report Error reported through Stackdriver Error Reporting Type: bug
Projects
None yet
Development

No branches or pull requests

2 participants