Cargo check issue

% cargo check

Updating crates.io index

error: Unable to update registry crates-io

Caused by: failed to fetch https://github.com/rust-lang/crates.io-index

Caused by: process didn't exit successfully: git fetch --force --update-head-ok 'https://github.com/rust-lang/crates.io-index' '+HEAD:refs/remotes/origin/HEAD' (exit status: 128) --- stderr fatal: unable to access 'GitHub - rust-lang/crates.io-index: Registry index for crates.io': Failed to connect to 127.0.0.1 port 15732 after 3 ms: Connection refused

Do you have some kind of proxy setup for git that should run at localhost, but fails? You could try running git clone https://github.com/rust-lang/crates.io-index to see if it works.

yes, I have set proxy for git. I have delete the proxy.it works. tks