You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to get uv to connect via a socks5 proxy. To my surprise, I could not get it working. After some digging, I see that the reqwest does support socks5, but you would need to add it explicitly to Cargo.toml as per this example.
Here is what I have tried so far (minimal code snippet that reproduces the bug):
# Set up proxy variables as per documentation
MY_SOCKS_PROXY=socks5://127.0.0.1:8080 # a proxy provided by an SSH connectionexport HTTP_PROXY=$MY_SOCKS_PROXYexport HTTPS_PROXY=$MY_SOCKS_PROXYexport ALL_PROXY=$MY_SOCKS_PROXY# then,
uv ... # any uv command
The error messages varied depending on what I tried, but it was usually something along the lines of Caused by: error sending request for url (https://REDACTED/simple/REDACTED/)
Version:
$ uv --version
uv 0.4.0
Summary:
Can we please add "socks" in the line that specifies reqwests in the Cargo.toml file? Or some other method to allow the use of socks-based proxies 🙏
The text was updated successfully, but these errors were encountered:
## Summary
This adds about 50 KB to the binary:
```
❯ du ./target/release/socks
44736 ./target/release/socks
❯ du ./target/release/uv
44632 ./target/release/uv
```
So need some input on whether it's worth supporting.
Closes#7484.
I've been trying to get
uv
to connect via a socks5 proxy. To my surprise, I could not get it working. After some digging, I see that thereqwest
does supportsocks5
, but you would need to add it explicitly toCargo.toml
as per this example.Here is what I have tried so far (minimal code snippet that reproduces the bug):
The error messages varied depending on what I tried, but it was usually something along the lines of
Caused by: error sending request for url (https://REDACTED/simple/REDACTED/)
Version:
Summary:
"socks"
in the line that specifiesreqwests
in theCargo.toml
file? Or some other method to allow the use of socks-based proxies 🙏The text was updated successfully, but these errors were encountered: