Warehouse: Invalid API Token: invalid macaroon!r for url

Created on 15 Sep 2020  路  11Comments  路  Source: pypa/warehouse

Describe the bug
Possibly related to #6259
When using the same token generated from pypi a couple of months ago, now I got the error:

HTTPError: 403 Client Error: Invalid API Token: invalid macaroon!r for url: https://upload.pypi.org/legacy/

I figured it was based on an old key and re-generated a token, but I get the same error.

I verified that the version of twine did not change between the successful execution and the failure.

Expected behavior
No error on upload.

To Reproduce

TWINE_USERNAME=__token__
TWINE_PASSWORD=<token generated at pypi.org>

twine upload ...

My Platform

Build dist: xenial
Runtime kernel version: 4.15.0-1077-gcp

Additional context
https://travis-ci.com/github/pyproj4/pyproj-wheels/jobs/384840987

Most helpful comment

Thanks, looks like https://github.com/pypa/warehouse/pull/8562 has re-introduced this (cc @ewjoachim).

All 11 comments

Hi @snowman2, this should be resolved by #8555 (and the error message improved by #8561), can you confirm?

It worked, thanks :+1:

Just got a similar error. Was working fine a week ago.

https://travis-ci.org/github/twilio/twilio-python/jobs/729123230

Thanks, looks like https://github.com/pypa/warehouse/pull/8562 has re-introduced this (cc @ewjoachim).

Thanks, looks like #8562 has re-introduced this (cc @ewjoachim).

Same for me...

+1 here. Please prioritize to fix this issue.

I am also getting this error

@Daggy1234 The code that created this issue has not been re-introduced, so you're likely having a similar but different error. Would you mind creating a different ticket? This would help tracking it separately. Thanks.

Sure

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nlhkabu picture nlhkabu  路  4Comments

zt2 picture zt2  路  4Comments

webknjaz picture webknjaz  路  4Comments

toddrme2178 picture toddrme2178  路  3Comments

gcochard picture gcochard  路  3Comments