Back

413 Request Entity Too Large for url after size increase

  • 1
  • Self Hosted
  • Storage
Reatret
16 May, 2024, 23:48

Hey all, I am trying to upload a photo to my self-hosted appwrite using the python API. I am getting this error:

TypeScript
Traceback (most recent call last):
  File "/home/daniel/Projects/photo-uploader/.venv/lib/python3.10/site-packages/appwrite/client.py", line 100, in call
    response.raise_for_status()
  File "/home/daniel/Projects/photo-uploader/.venv/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 413 Client Error: Request Entity Too Large for url: https://reatret.net/v1/storage/buckets/photos_full_res/files

I have already increased _APP_STORAGE_LIMIT to 150000000 and I am trying to upload a file that is 12MB.

Am I hitting some other limit here?

Any help would be appreciated here. Thanks.

TL;DR
Developers are facing a "413 Request Entity Too Large" error when trying to upload a 12MB photo in a self-hosted appwrite using the Python API. They have already increased _APP_STORAGE_LIMIT to 150000000 but the issue persists. Any ideas on solving this problem? Solution: Increase the server's client_max_body_size parameter to allow larger file uploads.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more