Open
Description
Problem
Trying to run cargo update for a project or cargo install now produces this error:
warning: spurious network error (2 tries remaining): error reading from the zlib stream; class=Zlib (5)
warning: spurious network error (1 tries remaining): error reading from the zlib stream; class=Zlib (5)
error: failed to fetch `https://github.com/rust-lang/crates.io-index`
Caused by:
error reading from the zlib stream; class=Zlib (5)
Fails on versions:
cargo 1.58.0 (7f08ace4f 2021-11-24)
and
cargo 1.60.0-nightly (06b9d3174 2022-01-11)
Although I suspect it has to do with the OS. Unfortunately the OS can not be upgraded at this time.
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
cargo 1.58.0 (7f08ace4f 2021-11-24)
release: 1.58.0
commit-hash: 7f08ace4f1305de7f3b1b0e2f765911957226bd4
commit-date: 2021-11-24
host: x86_64-unknown-linux-gnu
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:OpenSSL/1.1.1l)
os: OracleLinux 7.9.0 [64-bit]