-
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
403 error when using private myget repository #5651
Comments
With recent changes this might have already been resolved. Can you test the version from master? See these issues for more information: #5518 Install Poetry from VCSpipx install --force --suffix=@git 'poetry @ git+https://github.com/python-poetry/poetry.git' |
Apologies for the delay in testing. The git version still doesn't work, but in a new way.
That's after adding the myget repo using:
|
@voney looks like your source was searched, nothing found and then PyPI was looked at. You can try with |
Ok so it looks like maybe the dependency solver isn't correctly getting additional packages from the private repo. Take a look.
For context here, I'm installing |
Conversation moved to #5682. |
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. |
I am on the latest Poetry version.
I am on the most recent pre-release version 1.2.0b1
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Fedora Workstation 35
Poetry version: 1.2.0b1
Link of a Gist with the contents of your pyproject.toml file: pyproject.toml
Issue
Myget uses basic authentication for the repository but hands back CDN download links that include the authentication as part of the URL.
When poetry attempts to download the file it's still using the same session it used to hit myget in the first place, which includes the basic auth headers. This causes the CDN to return a 403 error, similar to the below:
The same repository works just fine with pip so it should be working in poetry.
I can think of two solutions to this:
pyproject.toml
file that instructs poetry to not use the basic auth headers to download the packages. (I had a crack at this one, but the semantics of how poetry parses thepyproject.toml
file is a bit beyond me)The text was updated successfully, but these errors were encountered: