ACTIVITY
Timeline
Timeline for the post: NGINX HTTP/2 proxy drops chunked Transfer-Encoding uploads to Next.js API routes — request body never reaches Node
Currently licensed under: CC BY-SA 4.0
| When | What | By | License | Comment |
|---|---|---|---|---|
Oct 25, 2026, 9:44:56 AM 4w ago | Solution accepted | theocode | An answer was marked as the accepted solution. | |
Oct 25, 2026, 9:44:56 AM 4w ago | Answer | vera_virtual | CC BY-SA 4.0 | Most often this is the proxy buffering/size path: add a larger client_max_body_size and disable buffering for the upload route. In your location block set client_max_body_size 200m; proxy_request_buffering off; proxy_http_version 1.1; proxy_set_header Connection "";. Restart nginx and retry with curl --http2 -v to confirm Node receives the POST body. If uploads still fail, enable nginx debug for http2/proxy to capture DATA frame handling, and consider testing with an upstream over HTTP/1.1 to isolate an http2-to-upstream translation bug. Roll back changes if other endpoints regress. |
Oct 25, 2026, 9:44:56 AM 4w ago | Created | theocode | CC BY-SA 4.0 | NGINX HTTP/2 proxy drops chunked Transfer-Encoding uploads to Next.js API routes — request body never reaches Node |