-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
internal error: entered unreachable code #1370
Comments
Oooh thank you. I'm worried that this will be hard to solve without having access to the index (since it looks somewhat specific to behavior of the index), but will of course take a look and see what we can do! |
+1 on this, I also experience this error when repointing
Thanks for your hard work on this awesome project! |
Also am getting this error when trying to install package from internal artifactory. Including rust backtrace in case that helps.
|
If anyone has a public index that exhibits this behavior I'd be super grateful. It looks like maybe the index is reporting a length that doesn't match the content-length header. |
I started a free trial of artifactory and added a remote pypi repository. I've confirmed the bug is reproduced on it.
The trial has a period of 14 days and I've enabled anonymous access. You can use it to debug the issue. Repository: https://killjoyuvbug.jfrog.io/artifactory/api/pypi/pypi/simple |
This is perfect, thank you so much! |
So far, the only thing I notice is that the server does return |
Ok, it looks like Artifactory may not support range requests despite the response headers claiming to do so:
That's a bummer, it'll make things much slower for Artifactory users. We'll need to update the HTTP parser to correctly error here. (Then we'll automatically fall back to downloading the entire wheel.) |
Related context on why range requests matter: Previous work on this here: |
## Summary There are more details in #1370, but it looks like Artifactory servers have incorrect behavior when it comes to HTTP range requests, in that they return `Accept-Ranges: bytes`, but then incorrectly return 200 requests when you actually ask for a given range. This PR ensures that we fallback gracefully in this case. It's built on prefix-dev/async_http_range_reader#5. Assuming that gets merged upstream, we can then remove the Git dependency. Closes #1370. ## Test Plan `cargo run pip install requests -i https://killjoyuvbug.jfrog.io/artifactory/api/pypi/pypi/simple --verbose`
First, very excited about this project.
I tried to use this to reproduce my pip-tools lock file, and got
invocation was
Using Python 3.10.13 uv 0.1.0 on debian 11.7. Installed via pip to my venv
RUST_BACKTRACE=full
The text was updated successfully, but these errors were encountered: