This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Maximum request body size 1048576 exceeded, actual body size 1049648 #4474
Labels
question
StackOverflow
Long story short
I'm trying to uploads small files (less than 120MiB) to my server written with aiohttp but when they are a little too bigs it doesn't work.
Expected behaviour
The request should be handled.
Actual behaviour
The server returns:
Maximum request body size 1048576 exceeded, actual body size 1049648
Steps to reproduce
Clone my small server polymath: https://github.com/Th0rgal/Polymath/blob/master/server.py
Perform:
curl -F "pack=@./file.zip" -F "id=666599" -X POST http://localhost:8080/upload
Your environment
My server runs under nixos 19.09 (linux 5.4.6) and I get this error with any clients (windows, ubuntu, nixos, etc).
Is there a way to change this limit server-sidely?
The text was updated successfully, but these errors were encountered: