Git Product home page Git Product logo

Comments (6)

dustinbolton avatar dustinbolton commented on July 30, 2024

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.

agnat avatar agnat commented on July 30, 2024

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.

nleclerc avatar nleclerc commented on July 30, 2024

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.

agnat avatar agnat commented on July 30, 2024

from node_mdns.

nleclerc avatar nleclerc commented on July 30, 2024

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.

nleclerc avatar nleclerc commented on July 30, 2024

after doing some testing i remembered that my app also browses for servers... my bad. Sorry.

from node_mdns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.