Skip to content

Unhandled 'error' event : ECONNRESET #11414

Closed

Description

@cong88

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)

Activity

  1. added
    invalidIssues and PRs that are invalid.
    questionIssues asking questions about Node.js.
    on Feb 16, 2017
  2. mscdex commented on Feb 16, 2017

    @mscdex
    Contributor

    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.

  3. josephrocca commented on Jul 8, 2017

    @josephrocca

    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

  4. ssz360 commented on Mar 9, 2018

    @ssz360

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIssues and PRs that are invalid.questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions