Skip to content

Need some help with "HTTPError: 400 Bad Request from ,,, Non-user identities cannot create new projects. ...." error #15589

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
IgorCaetano opened this issue Mar 13, 2024 · 2 comments
Labels
bug 🐛 requires triaging maintainers need to do initial inspection of issue

Comments

@IgorCaetano
Copy link

Describe the bug

I'm having some trouble trying to upload my package on pypi platform. I consider myself a begginer programmer, but I've already successfully uploaded 3 packages (almost cryed when it was released)! I'm currently using twine to upload it and VS Code as my code editor.

I've already created successfully the build, dist and package.egg-info folders. The problem happens when I try to upload to pypi using twine.

I run the following command on the terminal:
twine upload dist/* --username token --password MYAPITOKEN --verbose

My APITOKEN is correctly, I've already checked.

But then I got as output:
"HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
Non-user identities cannot create new projects. This was probably caused by
successfully using a pending publisher but specifying the project name
incorrectly (either in the publisher or in your project's metadata). Please
ensure that both match. See:
https://docs.pypi.org/trusted-publishers/troubleshooting/"

My package folder name and my "name" variable in my setup.py file is the exactly the same! I don't know what's happening.

I'm literally doing the same thing I did with the other 3 successfull uploaded packages... Please help!!

Expected behavior

I would appreciate a lot if someone could clear my mind so I can fix some file to upload my package.

To Reproduce

I'm not going to share the code files because I'm worried someone can copy and upload it with the same name before me :/

My Platform

I'm using:
twine 5.0.0
setuptools 69.0.3

Additional context

@IgorCaetano IgorCaetano added bug 🐛 requires triaging maintainers need to do initial inspection of issue labels Mar 13, 2024
@di
Copy link
Member

di commented Mar 13, 2024

Duplicate of #15586.

@di di closed this as completed Mar 13, 2024
@IgorCaetano
Copy link
Author

Update: I literally just wait until now, created a new folder exactly the same as the old one, try to run the commands again and it worked. It's a little sad that I couldn't understand what happened, but fortunally it's working now, hehe!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 requires triaging maintainers need to do initial inspection of issue
Projects
None yet
Development

No branches or pull requests

2 participants