Skip to content

Invalid API Token: token with user restriction without a user #222

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

Closed
byrdie opened this issue Mar 13, 2024 · 5 comments
Closed

Invalid API Token: token with user restriction without a user #222

byrdie opened this issue Mar 13, 2024 · 5 comments

Comments

@byrdie
Copy link

byrdie commented Mar 13, 2024

I've been using this action across all my projects for a while now and everything has been working perfectly.

Today however, when I tried to publish my project, I encountered the following error:

Checking dist/optika-0.0.10-py3-none-any.whl: PASSED
Checking dist/optika-0.0.10.tar.gz: PASSED
Uploading distributions to https://upload.pypi.org/legacy/
Uploading optika-0.0.10-py3-none-any.whl
25l
  0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/4.7 MB • --:-- • ?
  4% ━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.2/4.7 MB • 00:01 • 10.6 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 MB • 00:00 • 41.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 MB • 00:00 • 41.8 MB/s
WARNING  Error during upload. Retry with the --verbose option for more details. 
ERROR    HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/          
         Invalid API Token: token with user restriction without a user

Does anyone know what changed? Do I need to regenerate new tokens or something?

@webknjaz
Copy link
Member

Not sure, but it's a good opportunity to migrate to tokenless publishing 😉

@webknjaz
Copy link
Member

@webknjaz
Copy link
Member

Here's a similar report pypi/support#3740

@webknjaz
Copy link
Member

It seems like @di also reverted something that might've fixed the problem: pypi/warehouse#15588. So I suggest you retry your job to see if it's been fixed already.

@byrdie
Copy link
Author

byrdie commented Mar 13, 2024

@webknjaz, seems to be working now, thanks for your help!

@byrdie byrdie closed this as completed Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants