-
-
Notifications
You must be signed in to change notification settings - Fork 62
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 http on error #791
Comments
P.S. This is related to #776 |
Fixed #779 #791 - Retry request on timeout - Retry for `StatusCode::{REQUEST_TIMEOUT, GATEWAY_TIMEOUT}` - Add `DEFAULT_RETRY_DURATION_FOR_RATE_LIMIT` for 503/429 if 503/429 does not give us a header or give us an invalid header on when to retry, we would default to `DEFAULT_RETRY_DURATION_FOR_RATE_LIMIT`. - Fix `Client::get_redirected_final_url`: Retry using `GET` on status code 400..405 + 410 - Rename remote_exists => remote_gettable & support fallback to GET if HEAD fails due to status code 400..405 + 410. - Improve `Client::get_stream`: Include url & method in the err of the stream returned Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
There are still some very strange error in our CI. From here:
@passcod Do you have any idea what could cause this? Also this:
For this connection reset, we could call fn Also, I think we need to cache call to |
According to this SSO answer, the "stream error received" might be caused by opening too many concurrent streams, so we should also retry on encountering this error. |
I suppose we should also increase the interval in our rate limiting. |
That works very well and our CI now finishes with in 7m. |
We got another http error from https://crates.io
looks like we still need to add more retry logic to |
Fixed #791 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
In our CI, installing miniserve from GH release often failed due to timed out, thus I think we need to retry them on error.
Also:
The same stream error also happens to
cargo-watch
andsccache
, IDK whether it is a bug or simply due to being overloaded?The text was updated successfully, but these errors were encountered: