chunk body in response

Y
  • 27 Jun '23
Hi

Nginx 1.23.2

When HTTP Server replies chunk body nginx has an error
0 upstream sent invalid chunked response while reading upstream, client: 10.1.0.14, server: , request:

My nginx.conf have these attribute under the server section:

+ proxy_http_version 1.1;
+ proxy_set_header Connection "";

What am I Missing?
Is new/other Nginx version solving this issue?

Thanks

Yuval Abadi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20230627/e6dbdbb5/attachment-0001.htm>
M
  • 27 Jun '23
Hello!

On Tue, Jun 27, 2023 at 10:57:37AM +0000, Yuval Abadi via nginx wrote:

> Hi
> 
> Nginx 1.23.2
> 
> When HTTP Server replies chunk body nginx has an error
> 0 upstream sent invalid chunked response while reading upstream, client: 10.1.0.14, server: , request:
> 
> My nginx.conf have these attribute under the server section:
> 
> + proxy_http_version 1.1;
> + proxy_set_header Connection "";
> 
> What am I Missing?
> Is new/other Nginx version solving this issue?

The error message suggests your upstream server returned an 
invalid response.  Check nginx debug logs and/or tcpdump for more 
details (and probably some hints on how to fix your upstream 
server).

-- 
Maxim Dounin
http://mdounin.ru/