NodeJs : How to send very large data from server to client
03:29 20 Aug 2017

I am using Express Framework. I am trying to send very large data from server. The Client receives 200 OK status but no data. Also it gives error ERR_CONTENT_LENGTH_MISMATCH even though I am sending the content-length Header from server. The content-length of my response is 2102619.

This is the code I used to send response:

var rowNew = JSON.stringify(row); 
res.set({ 'Content-Length': rowNew.length }); 
return res.status(200).send(row); 

Also tried increasing the time limit to a very large:

server.timeout = 300000;
node.js rest express