Server randomly exiting, ECONNRESET error

express
nodejs

#1

I’m using Node.js, express, mongodb.

Seemingly randomly the server will stop, i’ll get the “No application seems to be running here!” when i load the webpage, and node outputs the error below.

It doesn’t always happen while loading a webpage, in fact it’s usually in between. I’ll load a page successfully, make some changes, load the page again and i’ll get “No application seems to be running here!”, then go back to my IDE to see it crashed with the error below. MongoDB does not crash and stays open. I just have to run my node start configuration again. This seems to happen on any give page.

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at exports._errnoException (util.js:870:11)
    at TCP.onread (net.js:552:26)


Process exited with code: 1

If anyone can tell me what might be causing this that would be good. If it’s just a side effect of c9 i can live with it, I just want to know if it’s my code or not. If I need to post some code or allow access let me know.