Skip to content

Uncaught ECONNRESET #433

@danfuzz

Description

@danfuzz

Describe the bug

Sometimes it seems like an ECONNRESET ends up uncaught from a callback (not an unhandled promise rejection). Unclear where the culprit actually is; this project's code does not appear in the stack trace.

To reproduce

Steps to reproduce the problem:

Unclear. Shows up in production.

Expected behavior

No exception.

Actual behavior

Exception along the lines of this (excerpt from a process.json file):

    "problems": [
      {
        "type": "uncaughtException",
        "problem": {
          "@Error": {
            "code": "ECONNRESET",
            "message": "read ECONNRESET",
            "stack": [
              {
                "name": "TCP.onStreamRead",
                "file": "node:internal/stream_base_commons",
                "line": 217,
                "col": 20
              },
              {
                "name": "TCP.callbackTrampoline",
                "file": "node:internal/async_hooks",
                "line": 130,
                "col": 17
              }
            ],
            "errno": -104,
            "syscall": "read"
          }
        }
      }
    ],

Environment

  • OS: Amazon Linux 2023
  • Node: 20
  • Browser: n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions