We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7146ef commit 20a2628Copy full SHA for 20a2628
core/src/client.rs
@@ -1149,7 +1149,7 @@ impl APIClient {
1149
}
1150
Err(err) => (
1151
Error::Request(err.to_string()),
1152
- err.is_timeout() || err.is_connect(),
+ err.is_timeout() || err.is_connect() || err.is_request(),
1153
),
1154
};
1155
if !retry {
@@ -1161,7 +1161,7 @@ impl APIClient {
1161
retries = 0;
1162
} else if retries == 2 {
1163
return Err(err.with_context(&format!(
1164
- "{} {} after 3 reties",
+ "{} {} after 3 retries",
1165
request.method(),
1166
request.url()
1167
)));
@@ -1183,6 +1183,7 @@ impl APIClient {
1183
);
1184
1185
1186
+ warn!("will retry after 10 seconds");
1187
sleep(jitter(Duration::from_secs(10))).await;
1188
1189
0 commit comments