-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-gitArea: anything dealing with gitArea: anything dealing with gitA-networkingArea: networking issues, curl, etc.Area: networking issues, curl, etc.C-bugCategory: bugCategory: bugS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Description
Problem
when a global git https/http proxy config is set.
cargo install will fail with the following errors:
Updating crates.io index
warning: spurious network error (3 tries remaining): [35] SSL connect error (OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to index.crates.io:443 )
warning: spurious network error (2 tries remaining): [35] SSL connect error (OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to index.crates.io:443 )
warning: spurious network error (1 tries remaining): [35] SSL connect error (OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to index.crates.io:443 )
error: download of config.json failed
Caused by:
failed to download from `https://index.crates.io/config.json`
Caused by:
[35] SSL connect error (OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to index.crates.io:443 )
after removing git config, cargo install will be normal again.
Steps
- create a git config file in ~/.gitconfig
- add the following config
[https]
proxy = socks5://127.0.0.1:1080
[http]
proxy = socks5://127.0.0.1:1080
- execute
cargo install
Possible Solution(s)
remove git proxy config for http/https.
Notes
No response
Version
cargo 1.85.0-nightly (769f622e1 2024-12-14)
Metadata
Metadata
Assignees
Labels
A-gitArea: anything dealing with gitArea: anything dealing with gitA-networkingArea: networking issues, curl, etc.Area: networking issues, curl, etc.C-bugCategory: bugCategory: bugS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.