-
Notifications
You must be signed in to change notification settings - Fork 23
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
how to use rig behind proxy server #166
Comments
rig does use the root@7ee1366b84ee:~# export https_proxy=https://example.com
root@7ee1366b84ee:~# rig resolve release
[ERROR] Failed to resolve R version: Cannot download JSON: error sending request for url (https://api.r-hub.io/rversions/resolve/release/linux-ubuntu-22.04/aarch64): error trying to connect: unsuccessful tunnel
root@7ee1366b84ee:~# unset https_proxy
root@7ee1366b84ee:~# rig resolve release
4.3.1 https://github.com/r-hub/R/releases/download/v4.3.1/r-rstudio-ubuntu-2204-4.3.1_1_arm64.deb |
Just tried it with a proper squid proxy, on macOS, and that works as well, rig uses the proxy for HTTPS urls. Also, from your error
hints that this is not an issue with rig, but there is something wrong with name resolution. I am going to close this now, but if you still think that this is a rig issue, then please reopen with new information. Thanks! |
sudo doesn't have proxy env variables set. Thanks! |
Aha, that makes sense and we should indeed fix it. Thanks for the report! |
This is fixed on GitHub. A workaround until the next rig version is released is to run |
how to use rig behind proxy server, wget works without issue. I have https_proxy and http_proxy env variables set.
The text was updated successfully, but these errors were encountered: