-
Notifications
You must be signed in to change notification settings - Fork 996
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
Invalid API Token: InvalidMacaroon('invalid macaroon signature') #9017
Comments
Also may be worth noting that the PyPi account dashboard claims the token has never been used. |
Can you check if the token works when invoking twine with the password directly rather than using it in the
|
looks to give the same error |
It looks like you're trying to upload a distribution with the project name |
oh man, i guess that decision has finally come back to bite us in the ass... 😅 I'll change the distribution name and give that a shot. Any chance the error message could be updated to make it clear what's happening? Might help people in the future... |
Yep, that fixed it. Thanks for the help! |
Created #9018 to capture that. |
Describe the bug
When attempting to upload a package to PyPi using twine and an API token, the server responded with HTTP 403, saying that the API token was invalid due to an invalid macaroon signature.
The key in question was generated less than a day ago, and has not worked once since its inception.
Expected behavior
The package is successfully uploaded to PyPi.
To Reproduce
twine upload
My Platform
using twine 3.3.0 on an azure devops agent (
vs2017-win2016
), reproduced locally on a ubuntu 20.04 instance with the same .pypirc and twine versionAdditional context
Presumably related to #8554 and #8565
.pypirc:
Logs
Azure:
Local:
The text was updated successfully, but these errors were encountered: