-
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
Authorization error using poetry 1.2 #6439
Comments
Not sure how I missed those issues, then I guess I have another problem somewhere in my build because with poetry 1.2, the CICD job fails with Thanks for the prompt reply and I will dive deeper on my end (maybe how gitlab is processing the log, idk) |
Failures to authenticate shouldn't cause Poetry to exit with a failure status -- if there was an issue getting all the packages needed during |
I see a |
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. |
[ x] I am on the latest Poetry version 1.2
[ x] 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: Ubuntu 20.04
Poetry version: 1.2
Link of a Gist with the contents of your pyproject.toml file: N/A
Issue
When running
poetry install
under 1.2 against a private pypi repo hosted in gitlab, I now get an authorization error. This previously worked under poetry 1.1.15Note that the variable PROJECT_ACCESS_TOKEN is being properly dereferenced and as mentioned, this does work under poetry 1.1.15
CICD log file
poetry config repositories.abcd https://git.somedomain.com/api/v4/projects/76/packages/pypi
$ poetry config http-basic.abcd pypi-tokens $PROJECT_ACCESS_TOKEN
Using a plaintext file to store credentials
$ poetry config virtualenvs.create false
Updating dependencies
Resolving dependencies...
Source (ABCD_Gitlab): Authorization error accessing https://git.somedomain.com/api/v4/projects/76/packages/pypi/simple/pytest-mock/
Source (ABCD_Gitlab): Authorization error accessing https://git.somedomain.com/api/v4/projects/76/packages/pypi/simple/pytest-asyncio/
[Same authorization error then repeats for all python dependencies]
Work Around
Install/use poetry <1.2
The text was updated successfully, but these errors were encountered: