Skip to content

Authorization error using poetry 1.2  #6439

@dougpool

Description

@dougpool
  • [ 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.15

Note 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/installerRelated to the dependency installerkind/questionUser questions (candidates for conversion to discussion)status/duplicateDuplicate issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions