-
Notifications
You must be signed in to change notification settings - Fork 983
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
Improve "invalid macaroon signature" error #9018
Comments
If we're touching this part, do you think we could try and merge #8598 first ? |
Yes, agreed, just wanted to capture the issue. |
This also may happen when the target repository does not exist yet when using an "all projects" API token. In such cases I had to first create the project by uploading using the human account credential. But still, I'm currently debugging one of my repo facing this error, with correctly configured org-level secrets and environment variables on GitHub workflows, while many other repositories with the same token work well with the same token, and where that particular project is created using the human credential after failing with the org-configured "all projects" token and the repository name was renamed. I tried upgrading |
#9264 will bring much more detailed error messages. Nevertheless, what you experience with the first upload is not the expected behavior, but it belongs to another issue. Can you open a new issue ? (Feel free to ping me) |
#11122 will refactor some of the code responsible for the error handling here, hopefully making it easier to resolve this. |
Another update: I figured out a relatively straightforward way to propagate the error messages we added with #11122, so I'll have a PR that resolves this soon. |
Fixed by #11885. |
Right now, an API token can fail for a number of reasons, most of which produce an "invalid macaroon signature" exception.
https://github.com/pypa/warehouse/blob/aafc5185e57e67d43487ce4faa95913dd4573e14/warehouse/macaroons/caveats.py#L93
Common issues that could use more detailed error messages:
pypi-
The text was updated successfully, but these errors were encountered: