nginx net::错误\u不完整\u分块\u编码

nginx net::错误\u不完整\u分块\u编码,nginx,netty,Nginx,Netty,我试图在nginx上点击一个被代理到Netty的URL,对于一个特定的URL,我在chrome和Safari上得到net::ERR_complete_CHUNKED_编码,有时有效,有时无效 Here is the configuration: location /service-order-api { proxy_http_version 1.1; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

我试图在nginx上点击一个被代理到Netty的URL,对于一个特定的URL,我在chrome和Safari上得到net::ERR_complete_CHUNKED_编码,有时有效,有时无效

Here is the configuration: 
location /service-order-api {
    proxy_http_version 1.1;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host:$server_port;
    proxy_pass http://service_order_api;
    #proxy_read_timeout 120;
    proxy_set_header X-Real-IP $remote_addr;
    #proxy_buffer_size 2k;
    #proxy_buffers 8 24k;
    proxy_redirect off;
    #proxy_buffering off;
    chunked_transfer_encoding on;
  }

我通过设置proxy_set_header Connection“”解决了这个问题;并使用keep alive连接到Netty。