Closed mc51 closed 4 months ago
This may be a duplicate of #1212, are you behind any sort of corporate firewall?
Yes, I think this is a duplicate as it sounds like the same issue. It happens in a corporate firewall environment and there is obviously some mitm going on. But the error message is strange and also the fact that downloading the file via curl is no problem. I'm closing this and trying to contribute to the solution in the other issue.
Steps to Reproduce
Trying to install rye on Linux with the suggest method:
curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash
Expected Result
Rye should be installed fully and without errors. It should work after installation.
Actual Result
I'm getting this error during install:
The rye command itself is available after install but it's not usable. When running e.g.
rye add requests
, I'm getting the same problem:My guess is, this is because
https://github.com/astral-sh/uv/releases/download/0.2.22/uv-x86_64-unknown-linux-gnu.tar.gz
is receiving a 302 response with the actual file location. For example,curl
doesn't seem to handle that correctly. If I docurl -O https://github.com/astral-sh/uv/releases/download/0.2.22/uv-x86_64-unknown-linux-gnu.tar.gz
the created file is empty. However, if we instruct curl to follow the redirect, it works:curl -L -O https://github.com/astral-sh/uv/releases/download/0.2.22/uv-x86_64-unknown-linux-gnu.tar.gz
. I suspect the same behavior during installation. I'll try to take a look at the code to confirm, after posting this./e: This doesn't seem to be the case. As far as I can tell, the used curl library should be following the redirect as specified here.
Version Info
This is with the current installer script, trying to install rye 3.6.0 (but same with all other version to be installed). I'm on Ubuntu running in WSL2 under Windows 10:
My curl is:
Stacktrace
No response