Skip to content
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

Couldn't fetch advisory database #2109

Open
tautology0 opened this issue Nov 6, 2024 · 1 comment
Open

Couldn't fetch advisory database #2109

tautology0 opened this issue Nov 6, 2024 · 1 comment

Comments

@tautology0
Copy link

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 tautology0 changed the title Could fetch advisory database Couldn't fetch advisory database Nov 6, 2024
@tautology0
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant