POST requests with large bodies hang the app

I have a simple docker-based Python service with a single endpoint that receives a JSON POST request and returns a JSON response. It works great when the request is relatively small, up to about 12kB or so; but on anything larger the server just stops responding whatsoever.

The app works correctly both when run locally and via docker, so the issue seems to be in the server configuration. The most similar existing issue I found is https://community.fly.io/t/http-408-on-post-requests/11799, but I don’t have the [[statics]] section at all.

Any ideas?

Uh, my mistake - 301 happened because I was sending requests to http without realising. :roll_eyes:

But I still have a problem: when the request is too large, as originally described, the server just hangs.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.