Diagnostic step 1
Enable detailed request logging for failed requests (log $request_body_file) and inspect client_body_temp_path for temp files and permissions.
Generated Oct 24, 2026, 9:21:01 AM
Enable detailed request logging for failed requests (log $request_body_file) and inspect client_body_temp_path for temp files and permissions.
Temporarily set proxy_request_buffering off for the upload location to let upstream handle chunked streams, then load-test to ensure upstream handles backpressure.
Keep client_body_max_size sufficiently high and increase client_body_buffer_size so initial buffer can absorb larger first chunks.
Reproduce failing client request with curl --raw --header 'Transfer-Encoding: chunked' and capture nginx access/error logs + tcpdump to inspect chunk framing.
If malformed streams found, add validation on the client side or return clearer errors upstream. Roll back proxy_request_buffering only if upstream load issues are observed.