-vvv option).Downloading wheels from an Azure Devops feed fails with a 401 Unathorized error using http-basic authorization. This is true whether creds are set with poetry config or env vars. Version collection still succeeds from the private repo. This is a bug (or undocumented interface change?) with the 1.1.0 prereleases, since everything works fine with 1.0.5.
Snippet of poetry update -vvv output:
Package operations: 0 installs, 1 update, 0 removals
• Updating data-utils (0.7.0 -> 0.6.20): Pending...
• Updating data-utils (0.7.0 -> 0.6.20): Failed
HTTPError
401 Client Error: Unauthorized for url: https://guycarp.pkgs.visualstudio.com/9fb36d55-4aac-44bd-9e13-0d2773f027b9/_packaging/c31f3100-0441-4ca7-8b74-4f948c9eb523/pypi/download/data-utils/0.6.20/data_utils-0.6.20-py3-none-any.whl#sha256=40ba0db196547929b735f3aee626be3ebdc990c929d1f5c0623ba6affd129588
I've been trying to debug this and the issue seems to be the following:
chooser to pick a url for the package to downloadLegacyRepository returns a list of urls without basic auth credentials in the url from find_links_for_packageThe LegacyRepository has a _get but this is not used and contains a reference to self._url instead of self.authenticated_url which might be a bug in and of itself?
I ran into the same issue. Do you also set credentials via environment variables? See if #2955 solves it for you as well.
Most helpful comment
I've been trying to debug this and the issue seems to be the following:
chooserto pick a url for the package to downloadLegacyRepositoryreturns a list of urls without basic auth credentials in the url fromfind_links_for_packageThe
LegacyRepositoryhas a_getbut this is not used and contains a reference toself._urlinstead ofself.authenticated_urlwhich might be a bug in and of itself?