Thứ Tư, 14 tháng 6, 2017

How to fix err "Can't set headers after they are sent."

How to fix err "Can't set headers after they are sent." 


fn = function () { throw arg; };                           ^

Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:356:11)

How to fix err "Can't set headers after they are sent."
How to fix err "Can't set headers after they are sent."
I think you catch this err because you have more than one reponse on your request. Let check it.

Good luck!!!

Previous Post
Next Post

post written by: