rustsec / advisory-db

Security advisory database for Rust crates published through crates.io
https://rustsec.org
Other
918 stars 362 forks source link

Couldn't fetch advisory database #2109

Open tautology0 opened 9 hours ago

tautology0 commented 9 hours ago

Clean install with Internet access of the latest version of cargo-audit:

$ cargo audit
    Fetching advisory database from `https://github.com/RustSec/advisory-db.git`
error: couldn't fetch advisory database: git operation failed: failed to fetch repo: An IO error occurred when talking to the server
$ cargo audit --version
cargo-audit-audit 0.21.0

This error message is a pet peeve of mine as it's next to useless, can we have some detail such as "failed TLS handshake" or "couldn't route to host" then I could do some digging to see whether its just me or whether its something in the cargo set up.

tautology0 commented 8 hours ago

The above was in a Ubuntu WSL session. Just tried it on Windows with a clean install and it worked first time. Looks to be Ubuntu specific. With no debug info I'm not certain how I can identify why it failed in one environment, but worked in another.