athombv / node-linux-device

Native addon to communicate with linux devices (can also be used for sockets or FIFOs)
GNU General Public License v3.0
5 stars 0 forks source link

Unhandled error event #16

Open WeeJeWel opened 6 years ago

WeeJeWel commented 6 years ago
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: Remote connection unexpectedly closed.
    at Object.keys.forEach (/node_modules/linux-device/remote/client.js:126:29)
    at Array.forEach (<anonymous>)
    at Socket.serv.on (/node_modules/linux-device/remote/client.js:125:25)
    at Socket.Emitter.emit (/node_modules/component-emitter/index.js:133:20)
    at Socket.emit (/node_modules/linux-device/node_modules/socket.io-client/lib/socket.js:136:10)
    at Socket.onclose (/node_modules/linux-device/node_modules/socket.io-client/lib/socket.js:209:8)
    at Manager.<anonymous> (/node_modules/component-bind/index.js:21:15)
    at Manager.Emitter.emit (/node_modules/component-emitter/index.js:133:20)
    at Manager.onclose (/node_modules/linux-device/node_modules/socket.io-client/lib/manager.js:502:8)
    at Socket.<anonymous> (/node_modules/component-bind/index.js:21:15)
jeroenvollenbrock commented 6 years ago

This is caused by the lack of an error event listener, but this issue lacks the required context to fix it.