0👍
It sounds like your upstream server (gunicorn) is somehow holding the connection open on that specific api call – I don’t know why (depends on your code, I think), but the default proxy_read_timeout
option in nginx is 60 seconds, so it sounds like this response isn’t being received, for some reason.
I use a very similar setup and I don’t notice any issues on POSTs generally, or any other requests.
Note that return HttpResponse(status=201)
has caused me issues before – it seems Django prefers an explicitly empty body: return HttpResponse("", status=201)
to work. I usually set something in the body where I’m expected to – this may be something to watch out for.
Source:stackexchange.com