-
Notifications
You must be signed in to change notification settings - Fork 141
413: Entity too large #252
Comments
uWSGI is the first place I would try. Out of curiosity, how large is the package you're trying to upload? I did some simple tests and wasn't able to get a 413 |
I've also run into this with a ~50mb package. In my case it looks like the problem is a 32mb hard limit on Google Cloud Run requests. |
We got in touch with GCP support about this; for our near-term needs we'll probably end up hosting our PyPI cloud container in our k8s cluster instead of Cloud Run. However, this part of their reply may be interesting for PyPI Cloud maintainers:
Is this signed URLs approach something that could come to PyPI cloud in the future? It'd probably somehow have to integrate with the |
It looks like for downloading pypicloud already uses signed URLs which could in theory be used for uploads as well. However I am not sure if this would require large changes to pypicloud itself to integrated this. @stevearc what do you think? |
I'm going to assume that making changes to twine or
Neither one of these would require rewriting much of pypicloud, but it could involve the addition of some potentially complex logic. |
We ended up going for something close to 1. We turned off |
Oof, rebuilding the whole cache is a lot of unnecessary work for one package, but if you're not doing it often I guess that's okay. There is an endpoint for this: https://pypicloud.readthedocs.io/en/latest/topics/api.html#get-admin-rebuild |
I ran into the same issue, but it turned out to be an ingress issue. if you use another software LB look for the proxy-body-size setting or something similar. |
Hello,
What's the best way to increase the max size of uploaded packages? Should it be a change to the UWSGI config (e.g. limit-post), or something else?
Thanks!
The text was updated successfully, but these errors were encountered: