Skip to content
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

400 response, no error message #1786

Closed
ghost opened this issue Nov 8, 2024 · 14 comments · Fixed by #1790
Closed

400 response, no error message #1786

ghost opened this issue Nov 8, 2024 · 14 comments · Fixed by #1790

Comments

@ghost
Copy link

ghost commented Nov 8, 2024

failed
Error uploading to repository: https://test.pypi.org/legacy/ - Client error '400 Bad Request' for url 'https://test.pypi.org/legacy/'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400

just get this trying to upload to test pypi, twine works fine... : ' (

@sjayjam
Copy link

sjayjam commented Nov 8, 2024

I'm getting a related error when attempting to publish to pypi today:
failed Error uploading to repository: https://upload.pypi.org/legacy/ - Client error '400 license-expression introduced in metadata version 2.4, not 2.3. See https://packaging.python.org/specifications/core-metadata for more information.' for url 'https://upload.pypi.org/legacy/' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400

updating the the METADATA file to 'version 2.4' did not resolve it.

@ofek
Copy link
Collaborator

ofek commented Nov 8, 2024

I'm looking into this, will be fixed by the end of the day

@afourney
Copy link

afourney commented Nov 9, 2024

Any update on this? I'm getting the same problem.

@ofek
Copy link
Collaborator

ofek commented Nov 9, 2024

Working on this today

@afourney
Copy link

afourney commented Nov 9, 2024

I see that this is patched. I've installed hatchling and hatch from a fresh pull from git, but I'm still getting the error. What's the correct way to get this update?

hatch --version reports "Hatch, version 1.12.1.dev29"

@ofek
Copy link
Collaborator

ofek commented Nov 10, 2024

There has not yet been a release, working on that still

@afourney
Copy link

Is there any mitigation or workaround presently? This is preventing me from publishing some updates to packages.

@ofek
Copy link
Collaborator

ofek commented Nov 10, 2024

The new release of Hatchling is out now https://github.com/pypa/hatch/releases/tag/hatchling-v1.26.0

@ghost
Copy link
Author

ghost commented Nov 11, 2024

@ofek this is still an issue with the new release...

@ofek
Copy link
Collaborator

ofek commented Nov 11, 2024

The error from @sjayjam is definitely fixed if you use the latest version of Hatchling. Is your issue unrelated to that?

@treyhunner
Copy link

treyhunner commented Nov 11, 2024

This may be a separate error, but this is what I'm still experiencing on the latest version (the package, in case it's helpful):

$ hatch publish
dist/strptime_cli-0.2.0.tar.gz ... failed
Error uploading to repository: https://upload.pypi.org/legacy/ - Client error '400 license-expression introduced in metadata version 2.4, not 2.3. See https://packaging.python.org/specifications/core-metadata for more information.' for url 'https://upload.pypi.org/legacy/'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400

I did a pipx uninstall hatch and pipx install hatch to make sure I got the latest version.

My version:

$ hatch --version
Hatch, version 1.13.0

@ofek
Copy link
Collaborator

ofek commented Nov 11, 2024

You would have to clear the pip cache or require hatchling>=1.26.1 in your build config.

@treyhunner
Copy link

You would have to clear the pip cache or require hatchling>=1.26.1 in your build config.

That worked for me. Thanks!

@ghost
Copy link
Author

ghost commented Nov 13, 2024

Seems to be solved !

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

Successfully merging a pull request may close this issue.

4 participants