Nginx upstream prematurely closed connection while reading response header from upstream, for large requests
I think that error from Nginx is indicating that the connection was closed by your nodejs server (i.e., “upstream”). How is nodejs configured?