Skip to content

TypeError: domain.enter is not a function on aborted connection #1949

@dvodonnell

Description

@dvodonnell

I'm not sure if this issue derives from this library, but I know it's at least correlated, so I'm hoping someone can help me out.

If I force an aborted connection in my app (like refreshing the browser during the app's handshake with the db), node spits out the following and crashes out:

events.js:155
domain.enter();
       ^
TypeError: domain.enter is not a function
 at IncomingMessage.emit (events.js:155:12)
   at abortIncoming (_http_server.js:427:9)
    at socketOnEnd (_http_server.js:443:5)
   at Socket.emit (events.js:165:20)
  at endReadableNT (_stream_readable.js:1101:12)
   at process._tickCallback (internal/process/next_tick.js:152:19)

Express is also in the mix, and given the files in that trace one would think something is underlying there, but I can only duplicate the error while MySQL is involved.

Even if I can't completely correct this issue, I'd like to at least handle it gracefully, but I can't even figure out where it's erupting from to do that.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions