gotwalt / sonos

Control Sonos speakers with Ruby
MIT License
383 stars 77 forks source link

Undefined method `browse' for Sonos::Device::Speaker #36

Closed rwrrll closed 10 years ago

rwrrll commented 10 years ago

Hi,

I wrote a really simple app (https://github.com/skinnyfit/tastebud) with this great gem, and it was working perfectly for a few days... then today, while running, it suddenly crashed with this error message:

/path/to/gems/sonos-0.3.5/lib/sonos/endpoint/content_directory.rb:24:in `queue': undefined method `browse' for #<Sonos::Device::Speaker:0x007f8e44223448> (NoMethodError)

Any call to speaker.queue is triggering this error.

I have no idea why this suddenly started happening (maybe Sonos updated itself?), but it's stopped working altogether now. I attempted to start debugging by looking at lib/sonos/endpoint/content_directory.rb:24, but there is no method browse in that class... in fact, I searched the whole repo for def browse, but no dice.

Any ideas what might be causing this error (or failing that, where browse is defined so I can investigate)?

Cheers! – Richard

rwrrll commented 10 years ago

Never mind, it's started working again! Hah!