-
Notifications
You must be signed in to change notification settings - Fork 894
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
Install throws "unsuccessful tunnel" behind proxy #1712
Comments
Could you please try with RUSTUP_USE_CURL=1 set in your environment but otherwise with things unchanged? |
Thanks @kinnison , it works flawlessly now. Is this realted to reqwest then? |
Quite probably yes. We'll need to work out what's going on with that. |
Is there a way to make this permanent? Can this be setup in rustup's settings.toml? |
You'll have to put that environment variable into your bashrc or similar, it's only communicated to rustup via the environment. Long term we intend to remove cURL too, so this needs to be solved in our reqwest backend. |
@seanmonstar hey, is this something you'd expect to work with reqwest, or has it not been implemented? If it should work, is there something we might be doing wrong to cause this? |
I'd expect this to normally work. The relevant line is here in reqwest: https://github.com/seanmonstar/reqwest/blob/871ec6f9899358aefa68ac011b232df24b788076/src/connect.rs#L379 Seems the proxy in question is returning something other than |
Could it be that the proxy requires a username and password sent through basic auth? The |
Looks like @seanmonstar Is there any way we can usefully rework our use of things to support this, or will it need added capability in reqwest to allow custom proxy intercepts to also set the auth data? |
Same situation here: Windows 7 behind a corporate proxy that became finicky recently. And you don't want to know what kind of belly dance is required to get curl.exe on the machine. |
I'm working on pulling in some updates for reqwest, which include support for socks5 and username/password in the URL. |
reqwest v0.9.14 has a fix to look for the username/password in the URL provided by |
This works for me behind a corporate proxy. Also I would love these commands have option like --verbose or similar to show what's wrong. The current error with no stacktrace is too general to find out what exactly the problem. |
Problem
Install fails behind proxy. Tested on fresh Debian Linux and Windows
Steps
For Debian:
Make sure http_proxy = HTTP_PROXY = https_proxy = HTTPS_PROXY = "http://user:pass@proxy_ip:proxy_port"
curl https://sh.rustup.rs -sSf | sh -s -- -v
output:
Possible Solution(s)
Notes
curl https://sh.rustup.rs -sSf | sh -s -- -v --version
The text was updated successfully, but these errors were encountered: