Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled 'error' event : ECONNRESET #11414

Closed
cong88 opened this issue Feb 16, 2017 · 3 comments · May be fixed by O330oei/node#4 or O330oei/node#11
Closed

Unhandled 'error' event : ECONNRESET #11414

cong88 opened this issue Feb 16, 2017 · 3 comments · May be fixed by O330oei/node#4 or O330oei/node#11
Labels
invalid Issues and PRs that are invalid. question Issues that look for answers.

Comments

@cong88
Copy link

cong88 commented Feb 16, 2017

My http service (using both http and socket.io) had crash after run for long time. I don't know how to make this error again. Please help to know what error and any solution for it. I will deploy to Linux production server any problem with it?

  • Version: v6.9.5
  • Platform: macOS Sierrav10.12.3

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

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

@mscdex mscdex added invalid Issues and PRs that are invalid. question Issues that look for answers. labels Feb 16, 2017
@mscdex
Copy link
Contributor

mscdex commented Feb 16, 2017

This kind of question belongs on the nodejs/help repo issue tracker.

The short answer though is the remote party terminated the connection abruptly while node was reading from the socket. Somewhere in your code or the code of a dependency module, an 'error' event handler is not being added (probably to the socket object), causing the exception to be thrown.

@mscdex mscdex closed this as completed Feb 16, 2017
@josephrocca
Copy link

For reference, there's quite a few people coming up against similar uncatchable errors in libraries like request and socket.io - they're not even catchable with process.on('uncaughtException', ...). Some clues here: request/request#2161

@ssz360
Copy link

ssz360 commented Mar 9, 2018

this solution solved my problem : ionic-team/ionic-cli#2921 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Issues and PRs that are invalid. question Issues that look for answers.
Projects
None yet
4 participants