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

Program crashing because of server module (through multicastdns) throwing EADDRNOTAVAIL #72

Open
Menlog-DD opened this issue Aug 4, 2021 · 3 comments

Comments

@Menlog-DD
Copy link

Hello,

Multicastdns from Server module (mdns-server.js) is throwing an error (EADDRNOTAVAIL ) coming from inner function setMulticastInterface as specified in dgram's documentation
https://nodejs.org/api/dgram.html#dgram_call_results

I can't find a way to catch it from my own code except with process.on('uncaughtExcetion') which i find pretty ugly

Is there a way to catch this exception properly ? Am i missing something here or is there no better way ?

@thom-nic
Copy link

Is this a duplicate of #18?

@Menlog-DD
Copy link
Author

Is this a duplicate of #18?

Hello Thom-nic ! Ty for your time

The scenario described in #18 is not the same as the one i encountered

I met the issue of handling this exception while trying to publish twice the same service name on the same network from the same computer (it happens when starting 2 instances of our program)

I have solutions to address my particular scenario, but the issue I wanted to point out was that the exception thrown does not seem to be catchable (unless I am missing something)

@thom-nic
Copy link

Either way, I'm going to suggest for anyone using this library in a production environment either migrate to bonjour-service or @homebridge/ciao. This project is unmaintained, it has not seen a single commit in 6 years (!)

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

2 participants