-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[poetry install] Error resolving packages from virtual repositories #9056
Comments
Edit: If you are reading this later, don't use this command, use #9056 (comment) Can you provide the output of the following command (replacing <link-to-wheel>)?
That should at least show what exactly is wrong with the server response. |
Hello. This is the output:
|
Unfortunately, the curl command apparently was not good enough. I suppose you got a negative response (length of data is too short) and some information might be missing. Can you try the following updated command?
and if the HTTP-Code is 401 or similar provide authentication to the command, e.g. via |
Sorry, you are right. Here it is a 20x response: `➜ ~ curl -u user:passwd -sv -H "Range: bytes=-10000" --stderr - -o /dev/null -w 'Response-Length: %{size_download}\nHTTP-Code:%{http_code}\n' https://xxxxxxxxxxxxx-any.whl | grep -i 'Length|Range|Code'
|
That helps a lot. With this information we can handle Artifactory's nonconform behavior better. Nevertheless, if anyone eligable for Artifactory support is reading this, it may still make sense to report the following bugs (because It seems JFrog tried to fix range requests with negative offsets in RTDEV-38572 (see changelog):
However, there are still two issues: Issue 1 (requested bytes < total size)Artifactory still returns the wrong number of bytes. It returns one more byte than requested:
It should return 1000 bytes instead of 1001. Issue 2 (requested bytes > total size)That's what we do not handle robust enough in Poetry right now. If we request more bytes than the size of the artifact, Artifactory returns a wrong content-length (and a strange content-range):
content-length should be 17297 (number of returned bytes). |
…dling of range requests with negative offsets see python-poetry#9056 (comment)
…dling of range requests with negative offsets see #9056 (comment)
…dling of range requests with negative offsets see #9056 (comment) (cherry picked from commit a70330b)
…dling of range requests with negative offsets see #9056 (comment) (cherry picked from commit a70330b)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Workarounds
Poetry Installation Method
pipx
Operating System
ubuntu
Poetry Version
Poetry (version 1.8.1)
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: