-
Notifications
You must be signed in to change notification settings - Fork 963
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
HTTPError: 413 Request Entity Too Large from https://pypi.org/legacy/ #17076
Comments
How large is the wheel that you're attempting to upload? PyPI has a request size limit of 1 GiB enforced by the load balancer, which cannot be raised. |
I assume that I have approx. 30 wheels of approx. 14 mb each + one sdist. I think that should be well under 1GB. With test.pypi the upload works without problems The error message:
|
Is the file onnx_weekly-1.18.0.dev20241111-cp310-cp310-macosx_12_0_universal2.whl available somewhere for inspection? |
It was published to test.pypi during the same run: |
Hm, from logs, I see:
|
ah, another ?... the upload endpoint is |
Yep, that's it. onnx/onnx@3763953 is likely root cause. The upload endpoint was coded as |
pypi/warehouse#17076 Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
### Description fix upload endpoint for pypi, pypi/warehouse#17076 The upload endpoint was coded as https://pypi.org/legacy (it should be https://upload.pypi.org/legacy) which has a much stricter body size limit, so the upload is bounced before warehouse gets a chance to say "hey this isn't the upload endpoint ### Motivation and Context <!-- - Why is this change required? What problem does it solve? --> <!-- - If it fixes an open issue, please link to the issue here. --> Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
### Description fix upload endpoint for pypi, pypi/warehouse#17076 The upload endpoint was coded as https://pypi.org/legacy (it should be https://upload.pypi.org/legacy) which has a much stricter body size limit, so the upload is bounced before warehouse gets a chance to say "hey this isn't the upload endpoint ### Motivation and Context <!-- - Why is this change required? What problem does it solve? --> <!-- - If it fixes an open issue, please link to the issue here. --> Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
Describe the bug
Trying to publish wheels to pypi results in the error "HTTPError: 413 Request Entity Too Large
The original issue can be found at
pypa/gh-action-pypi-publish#285
Expected behavior
it should work
To Reproduce
Currently, an automatic publish attempt runs weekly via schedule, but if the following PR (onnx/onnx#6540) is merged, it can also be triggered manually
My Platform
Additional context
The text was updated successfully, but these errors were encountered: