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

Support Q - unhandled error events #6326

Closed
ORESoftware opened this issue Apr 21, 2016 · 5 comments
Closed

Support Q - unhandled error events #6326

ORESoftware opened this issue Apr 21, 2016 · 5 comments

Comments

@ORESoftware
Copy link
Contributor

ORESoftware commented Apr 21, 2016

Hi all: looking for answers online for this one:

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

Error: This socket is closed.
    at Socket._writeGeneric (net.js:640:19)
    at Socket._write (net.js:694:8)
    at doWrite (_stream_writable.js:292:12)
    at writeOrBuffer (_stream_writable.js:278:5)
    at Socket.Writable.write (_stream_writable.js:207:11)
    at Socket.write (net.js:618:40)
    at process.<anonymous> (c:\Users\denman\WebstormProjects\suman\lib\handle-uncaught-exception.js:24:20)
    at emitOne (events.js:77:13)
    at process.emit (events.js:169:7)
    at process.startup.processFatal.process._fatalException (node.js:223:26)

I debugged through my code 20 times, I swore it was this then I swore it was that, but turns out no obvious part of my code is causing the error. I am on Windows, I don't believe the problem happens on OSX, tried on both, only happens on Windows, unfortunately, it's not clear at all where it originates from.

@fl0w
Copy link

fl0w commented Apr 21, 2016

Without some minimal reproduceable code It's very hard for anyone to guess why this occurs. But the error is thrown because you're trying to write to a socket that is closed.

If you're using a specific library, I'd personally try to isolate this, and check with library authors (because this looks like a user-land error, not node itself).

@cjihrig
Copy link
Contributor

cjihrig commented Apr 21, 2016

This isn't the right place for general support questions. Please move your questions to https://github.com/nodejs/help. If you discover an actual bug with Node, please report it here.

@cjihrig cjihrig closed this as completed Apr 21, 2016
@ORESoftware
Copy link
Contributor Author

@cjihrig np, noted thanks

@ORESoftware
Copy link
Contributor Author

Well it appears to be a bug with Node, if only because Windows and OSX act differently with core code, it may because of fs-events from chokidar, but that's just a guess

@cjihrig
Copy link
Contributor

cjihrig commented Apr 22, 2016

If you think it might be a bug in Node core, please provide a runnable example that reproduces the problem without any external dependencies like fs-events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants