Open youkinjoh opened 8 years ago
Thank you for your feedback. I tried same sample code. As you let me know, the same error was occurred. I don't know the reason why the error is occurred now. The error was not occurred before. I'll investigate the reason. Give me some time.
I have simillar issue:
events.js:141
throw er; // Unhandled 'error' event
^
Error: bind EADDRINUSE 0.0.0.0:1900
at Object.exports._errnoException (util.js:870:11)
at exports._exceptionWithHostPort (util.js:893:20)
at dgram.js:213:18
at nextTickCallbackWith3Args (node.js:452:9)
at process._tickCallback (node.js:358:17)
at Function.Module.runMain (module.js:444:11)
at startup (node.js:136:18)
at node.js:966:3
Anyway you can catch the error with
upnp.on('error', (err) => {
console.dir(err);
});
I use this module in sample code. I often happen
connect ECONNREFUSED
error and force close. Sorry, I don't know condition and method for error.(Sorry, IP address and port number masked...