Comments (6)
I discovered that while this has a different error number, it's caused by the same issue over at #130
The same fix works. I modifying /node_modules/msdns/lib/browser.js Browser.defaultResolverSequence to:
Browser.defaultResolverSequence = [ rst.DNSServiceResolve() , 'DNSServiceGetAddrInfo' in dns_sd ? rst.DNSServiceGetAddrInfo() : rst.getaddrinfo({families:[0]}) , rst.makeAddressesUnique() ];
and it fixed the issue.
The change that fixes it is adding "{families:[0]}" to the rst.getaddrinfo() call.
from node_mdns.
Yes, that's a known issue and disabling IPv6 is the right thing to do. You don't have to modify the package, however. Just use a custom resolver sequence:
http://agnat.github.io/node_mdns/user_guide.html#resolver_sequence
I hope this helps...
from node_mdns.
Sorry but there doesn't seem to be a way to override the resolverSequence when you create an advertisement. Only reference i see in the code are in the browser.
Using v2.5.1 btw.
from node_mdns.
from node_mdns.
Well, i still got that error :
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/blog/projects/avahi-compat.html
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/blog/projects/avahi-compat.html
(node:7049) UnhandledPromiseRejectionWarning: Error: getaddrinfo -3001
at errnoException (/home/escapeserver/escapeserver/node_modules/mdns/lib/resolver_sequence_tasks.js:199:11)
at getaddrinfo_complete (/home/escapeserver/escapeserver/node_modules/mdns/lib/resolver_sequence_tasks.js:112:10)
at GetAddrInfoReqWrap.oncomplete (/home/escapeserver/escapeserver/node_modules/mdns/lib/resolver_sequence_tasks.js:120:9)
and my code:
actualType = mdns.tcp(config.local.mdns.type)
ad = mdns.createAdvertisement actualType, config.env.listenPort
ad.start()
from node_mdns.
after doing some testing i remembered that my app also browses for servers... my bad. Sorry.
from node_mdns.
Related Issues (20)
- Mdns discovery stops after a connection
- cannot install mdns HOT 7
- install fails on void linux
- Error on node-gyp HOT 2
- Issues with Airplay. HOT 1
- Module not "context aware" - cannot be used in Electron
- The specified procedure could not be found HOT 5
- Discovery crashes when running in Docker HOT 2
- Error while discovering services getaddrinfo -3008 HOT 2
- Use mdns.Browser over VPN connection HOT 3
- Favor dns_sd DNSServiceGetAddrInfo on linux as well HOT 2
- Debian 10 won't run this module HOT 4
- Install issue? HOT 5
- Unable to install on macos monterey HOT 2
- Cannot import mdns from a Worker HOT 5
- Handle getaddrinfo error gracefully HOT 5
- Broken links for documentation, donation button, more
- Cannot compile/install on Raspberry Pi OS due to missing dns_sd.h
- Arbitrary service_name length limit HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node_mdns.