-
Notifications
You must be signed in to change notification settings - Fork 958
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
HTTP 401 Unauthorized for private package index #1371
Comments
Thank you! Will take a look. |
Same here - Really want to test (and replace pip with) uv but waiting for Azure artifacts support :( ! |
Thanks and sorry about that -- we'll get this setup internally and see if we can reproduce. |
Yep this is a priority for me next week! |
+1. Same issue for me. |
I believe this is the same as #1458 (lack of support for HEAD requests). |
Okay, @olivierlefloch fixed HEAD requests, but there's now an auth problem. @zanieb, do you want to take from here? |
Thank you all! I can confirm that on
|
Same for gitlab hosted private package index: getting a 401 Unauthorized. Interestingly, opening the URL in the error message in the browser downloads the package for me without a problem. the url looks like this:
|
Hi! We just merged a fix with #1874 that's out in v0.1.8 — let me know if that helps. I'll continue testing against various private repositories. |
Thank you @zanieb! At least for Azure Artifacts, I am still seeing the same error on |
Same here, |
For my own sanity, note this is also being tracked in #1709 |
A fix is up at #1886 if anyone wants to give it a try against a private index. |
Verified working on azure artifacts feed using token authentication!! Incredible work @zanieb, @olivierlefloch and @charliermarsh 🚀 |
…les (#1886) Closes #1709 Closes #1371 Tested with the reproduction provided in #1709 which gets past the HTTP 401. Reuses the same copying logic we introduced in #1874 to ensure authentication is attached to file URLs with a realm that matches that of the index. I had to move the authentication logic into a new crate so it could be used in `distribution-types`. We will want to something more robust in the future, like track all realms with authentication in a central store and perform lookups there. That's what `pip` does and it allows consolidation of logic like netrc lookups. That refactor feels significant though, and I'd like to get this fixed ASAP so this is a minimal fix.
I can confirm as well ❤️ Thank you so much! |
Hello! Very excited for this project ❤️
Installing a package from a private azure package index (Azure Artifacts) seems to be failing with a
HTTP status client error (405 Method Not Allowed)
:The equivalent pip-native command works as expected
The text was updated successfully, but these errors were encountered: