-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Labels
Area: stackdriver error reportError reported through Stackdriver Error ReportingError reported through Stackdriver Error ReportingType: bug
Description
We should probably also retry ClientException
from package:http
:
pub-dev/app/lib/shared/storage.dart
Lines 142 to 154 in 031c368
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
Labels
Area: stackdriver error reportError reported through Stackdriver Error ReportingError reported through Stackdriver Error ReportingType: bug