Nginx upstream prematurely closed connection while reading response header from upstream, for large requests

前端 未结 9 1027
無奈伤痛
無奈伤痛 2020-12-24 04:27

I am using nginx and node server to serve update requests. I get a gateway timeout when I request an update on large data. I saw this error from the nginx error logs :

<
9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-24 05:11

    I don't think this is your case, but I'll post it if it helps anyone. I had the same issue and the problem was that Node didn't respond at all (I had a condition that when failed didn't do anything - so no response) - So if increasing all your timeouts didn't solve it, make sure all scenarios get a response.

提交回复
热议问题