`"ECONNRESET"` usually happens when another end of the TCP connections closes its end due to any protocol-related errors and since no one is listening to the 'error' event it gets thrown, to deal with it you should put a listener which can handle such erroneous condition.
[Go through this link you can understand][1]
[1]: https://stackoverflow.com/questions/7310521/node-js-best-practice-exception-handling
"ECONNRESET" usually happens when another end of the TCP connections closes its end due to any protocol-related errors and since no one is listening to the 'error' event it gets thrown, to deal with it you should put a listener which can handle such erroneous condition.
You can refer to such exception handling here [node-js-best-practice-exception-handling][1]
[1]: https://stackoverflow.com/questions/7310521/node-js-best-practice-exception-handling