Hi,
I installed a new clean debian system to try the sonos-cli. Everything works except playing spotify song or mp3 streams.
First I display the current track information and then I try to play that track. It doesn't work.
Here is my output.
sonos --zone RINCON_949F3E1BFB3801400:246249917 current-track
Title: Sweet Dreams (Are Made of This) - Remastered
Album: Sweet Dreams (Are Made Of This)
Artist: Eurythmics
URI: x-sonos-spotify:spotify%3atrack%3a1TfqLAPs4K3s2rJMoCokcS?sid=9&flags=8224&sn=1
Then
sonos --zone RINCON_949F3E1BFB3801400:246249917 stop
sonos --zone RINCON_949F3E1BFB3801400:246249917 play x-sonos-spotify:spotify%3atrack%3a5FFowl1Ve4S5OehL6OywSg?sid=9&flags=8224&sn=1
[1] 1498
[2] 1499
hans@debian-jessie-1:/$ (node:1498) UnhandledPromiseRejectionWarning: StatusCodeError: 500 - "<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><s:Fault>s:ClientUPnPError<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">804</s:Fault></s:Body></s:Envelope>"
at new StatusCodeError (/usr/lib/node_modules/sonos-cli/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/usr/lib/node_modules/sonos-cli/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/usr/lib/node_modules/sonos-cli/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/usr/lib/node_modules/sonos-cli/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/usr/lib/node_modules/sonos-cli/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (/usr/lib/node_modules/sonos-cli/node_modules/request/request.js:1083:12)
(node:1498) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1498) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Hi,
I installed a new clean debian system to try the sonos-cli. Everything works except playing spotify song or mp3 streams.
First I display the current track information and then I try to play that track. It doesn't work.
Here is my output.
sonos --zone RINCON_949F3E1BFB3801400:246249917 current-track
Title: Sweet Dreams (Are Made of This) - Remastered
Album: Sweet Dreams (Are Made Of This)
Artist: Eurythmics
URI: x-sonos-spotify:spotify%3atrack%3a1TfqLAPs4K3s2rJMoCokcS?sid=9&flags=8224&sn=1
Then
sonos --zone RINCON_949F3E1BFB3801400:246249917 stop
sonos --zone RINCON_949F3E1BFB3801400:246249917 play x-sonos-spotify:spotify%3atrack%3a5FFowl1Ve4S5OehL6OywSg?sid=9&flags=8224&sn=1
[1] 1498
[2] 1499
hans@debian-jessie-1:/$ (node:1498) UnhandledPromiseRejectionWarning: StatusCodeError: 500 - "<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><s:Fault>s:ClientUPnPError<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">804</s:Fault></s:Body></s:Envelope>"
at new StatusCodeError (/usr/lib/node_modules/sonos-cli/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/usr/lib/node_modules/sonos-cli/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/usr/lib/node_modules/sonos-cli/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/usr/lib/node_modules/sonos-cli/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/usr/lib/node_modules/sonos-cli/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (/usr/lib/node_modules/sonos-cli/node_modules/request/request.js:1083:12)
(node:1498) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1498) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.