You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on Node.js 12 on linux. This code is working on my Mac, so definitely some discrepancies between the machine and or the libraries used for linux or something.
So I have this:
constudsFile='/home/oleg/.bunion/sockets/1564793353887444414.sock';try{fs.unlinkSync(udsFile);}catch(e){console.error(e);// Error: ENOENT: no such file or directory, unlink '/home/oleg/.bunion/sockets/1564793353887444414.sock' (this is fine)}server.listen(udsFile,()=>{// synchronously raised error hereconsole.log('Listening on unix domain socket:',udsFile);});
and then I get this synchronous error which is raised synchronously when server.listen is called:
Error: listen EADDRINUSE: address already in use /home/oleg/.bunion/sockets/1564793353887444414.sock
this makes no sense..my only guess is that the server.listen API is different on Mac vs Linux?
Another thing - server.listen doesn't seem to be async here, the error that's raised is synchronous, so that seems like a weird thing in Node.js-land?
The text was updated successfully, but these errors were encountered:
I am on Node.js 12 on linux. This code is working on my Mac, so definitely some discrepancies between the machine and or the libraries used for linux or something.
So I have this:
and then I get this synchronous error which is raised synchronously when server.listen is called:
this makes no sense..my only guess is that the server.listen API is different on Mac vs Linux?
Another thing - server.listen doesn't seem to be async here, the error that's raised is synchronous, so that seems like a weird thing in Node.js-land?
The text was updated successfully, but these errors were encountered: