Open tazjin opened 10 years ago
Thank you for reporting the issue. I'm looking at it now. I will update shortly :)
On further investigation this happens to me with just DNSSD as well:
~/s/a/l/airplay $ irb
irb(main):001:0> require "dnssd"
=> true
irb(main):002:0> DNSSD.browse!("_airplay._tcp.")
DNSSD::UnknownError: DNSSD operation failed with unrecognized error code: -65537
from /home/vincent/.gem/ruby/2.1.0/gems/dnssd-2.0/lib/dnssd/service.rb:64:in `_browse'
from /home/vincent/.gem/ruby/2.1.0/gems/dnssd-2.0/lib/dnssd/service.rb:64:in `browse'
from /home/vincent/.gem/ruby/2.1.0/gems/dnssd-2.0/lib/dnssd.rb:178:in `run'
from /home/vincent/.gem/ruby/2.1.0/gems/dnssd-2.0/lib/dnssd.rb:86:in `browse!'
from (irb):2
from /usr/bin/irb:11:in `<main>'
So it's most likely not related to this library. I might file this against dnssd itself.
//V
If you add the issue please cross reference it to this issue. I'll also work in a fix
As an anecdote, on FreeBSD I was seeing this error as well, but after reading this: https://www.mythtv.org/wiki/AirTunes/AirPlay#Not_seeing_AirPlay_device_in_iTunes it turns out that DNSSerivceBrowse returns -65537 when the avahi daemon is not running, so this was fixed by starting the avahi-daemon service. Not sure why it wouldn't return kDNSServiceErr_ServiceNotRunning instead?
Hej!
When I try to run any airplay-cli command (e.g.
air list
) I get an immediate crash in dnssd.Bonjour service discovery through something like
avahi-discover-standalone
works fine:This could be related to this issue in dnssd which seems to have the same error code, and this issue in this project. There doesn't seem to be a dot in any of the result names though.
Cheers, Vincent