You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Current master falls back to PyPi when using private repo. #5682
The original issue was that poetry could not handle repositories that hand back CDN links for packages with authenticationbaked into the URL because it would still add the base repository index auth details to the request headers.
After trying the lastest version from git I get a new issue.
(.venv) [daniel@dv-xps-fedora Davis_state_consumer]$ poetry@git add --source myget 'redacted'
Using version ^2.0.6 for redacted
Updating dependencies
Resolving dependencies... (4.2s)
HTTPError
404 Client Error: Not Found for url: https://pypi.org/pypi/redacted_dependency/json/
at ~/.local/pipx/venvs/poetry@git/lib64/python3.10/site-packages/requests/models.py:960 in raise_for_status
956│ elif 500 <= self.status_code < 600:
957│ http_error_msg = u'%s Server Error: %s for url: %s' % (self.status_code, reason, self.url)
958│
959│ if http_error_msg:
→ 960│ raise HTTPError(http_error_msg, response=self)
961│
962│ def close(self):
963│ """Releases the connection back to the pool. Once this method has been
964│ called the underlying ``raw`` object must not be accessed again.
Thanks for the logs @voney I will take a peek in the next few days. Seems for some reason instead of accepting a 404 as a "package not available in this source", we are raising the exception.
One the of the issues here is that we do not deal very well with transient deps. A mitigation in the interim might be to explicitly add redacted_dependency with source set to your project. But we should fix this propertly soon.
Activity
abn commentedon May 25, 2022
Following from #5651. Any chance you can provide the logs for the same command with
-vvv?voney commentedon May 25, 2022
Sorry for the double tickets, I'll comment here going forward.
abn commentedon May 25, 2022
Thanks for the logs @voney I will take a peek in the next few days. Seems for some reason instead of accepting a 404 as a "package not available in this source", we are raising the exception.
One the of the issues here is that we do not deal very well with transient deps. A mitigation in the interim might be to explicitly add
redacted_dependencywith source set to your project. But we should fix this propertly soon.voney commentedon May 25, 2022
Thans for the quick reply @abn I'll wait for version 1.2, I'm trying to get poetry used within my work and workarounds aren't going to fly.
abn commentedon May 26, 2022
@voney can you see if #5698 fixes this?
github-actions commentedon Mar 2, 2024
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.