Playing from a Pandora Station doesn't work
I successfully add a Pandora account, and then choose one of my Pandora stations and press play the station doesn't play. Sometimes the app hangs for a couple of seconds, but there's no real feedback - for example, no song information loads, no images, etc.
I can control the Sonos both through Spotify and through the Noson app itself.
This is on Linux Mint 19.1 Cinnamon.
Let me know if there's a way for me to read the logs and I'm happy to help you debug this.
Edit: looks like it's the same for Bandcamp
Hi, I know Bandcamp can't work because it doesn't allow more than one registered account at time. Registering the Bandcamp account with noson disable the account in the Sonos, and so you can browse Bandcamp with noson but Sonos can't play. You will have to registered again the account with Sonos ... but noson won't allow to browse... About Pandora, can you play a single song (not a station) ?
To enable debug log, launch noson with the following:
noson-app --debug | tee noson.log
Hey, thanks for getting back to me!
I installed this app from Linux Mint's software manager, so I'm running it through flatpak:
flatpak run io.github.janbar.noson --debug
The output, once I've browsed to Pandora and seen my stations, and then click on one of the stations to play it:
?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Header><credentials xmlns="http://www.sonos.com/Services/1.1"><deviceId>B8-E9-37-59-FF-D8:3</deviceId><deviceProvider>Sonos</deviceProvider><loginToken><token>VIlSQhZ2+eP5bPR3AtO55bSMbCHtS4vQY5FUVPmgRn3bcMR3XYhBty7Q==</token><key>O2ugCT9j</key><householdId>Sonos_I8DmjBmxxV8WMqEmnQzmAoivKc</householdId></loginToken></credentials></s:Header><s:Body><ns:getMetadata xmlns:ns="http://www.sonos.com/Services/1.1"><ns:id>myStations</ns:id><ns:index>0</ns:index><ns:count>100</ns:count><ns:recursive>false</ns:recursive></ns:getMetadata></s:Body></s:Envelope>
(SONOS)GetResponse: HTTP/1.1 200 OK
(SONOS)GetResponse: content-type: text/xml; charset=utf-8
(SONOS)GetResponse: date: Wed, 19 Jun 2019 16:35:13 GMT
(SONOS)GetResponse: connection: close
(SONOS)GetResponse: transfer-encoding: chunked
(SONOS)GetResponse:
(SONOS)ReadChunk: chunked data (535)
(SONOS)ReadChunk: chunked data (0)
(SONOS)DoCall: dump (getMetadataResult)
<getMetadataResult>
<index>0</index>
<total>3</total>
<count>3</count>
<mediaCollection>
<id>ST:4264132919637126559</id>
<itemType>program</itemType>
<title>Shuffle</title>
<canPlay>true</canPlay>
<canEnumerate>true</canEnumerate>
<albumArtURI>https://www.pandora.com/img/shuffle_art_90W_90H.png</albumArtURI>
<displayType>station</displayType>
</mediaCollection>
<mediaCollection>
<id>ST:4264135908934364575</id>
<itemType>program</itemType>
<title>Sylvan Esso Radio</title>
<canPlay>true</canPlay>
<canEnumerate>true</canEnumerate>
<albumArtURI>https://mediaserver-cont-ch1-2-v4v6.pandora.com/images/public/int/0/9/5/9/00888072029590_90W_90H.jpg</albumArtURI>
<displayType>station</displayType>
</mediaCollection>
<mediaCollection>
<id>ST:4264132915342159263</id>
<itemType>program</itemType>
<title>Washed Out Radio</title>
<canPlay>true</canPlay>
<canEnumerate>true</canEnumerate>
<albumArtURI>https://mediaserver-cont-sv5-1-v4v6.pandora.com/images/public/int/1/0/6/4/859729104601_90W_90H.jpg</albumArtURI>
<displayType>station</displayType>
</mediaCollection>
</getMetadataResult>
(SONOS)GetItems: [0] mediaCollection (program)(ST%3a4264132919637126559)
(SONOS)MakeUriMetadata: sid 236 (000c206cST%3a4264132919637126559)(0)
(SONOS)GetItems: [1] mediaCollection (program)(ST%3a4264135908934364575)
(SONOS)MakeUriMetadata: sid 236 (000c206cST%3a4264135908934364575)(0)
(SONOS)GetItems: [2] mediaCollection (program)(ST%3a4264132915342159263)
(SONOS)MakeUriMetadata: sid 236 (000c206cST%3a4264132915342159263)(0)
(SONOS)__connectAddr: connected to socket(0x7fc1bc0500f8)
(SONOS)SendRequest: POST /MediaRenderer/AVTransport/Control HTTP/1.1
Host: 192.168.128.31:1400
User-Agent: libnoson/1.12.5
Connection: close
Accept-Charset: utf-8
Content-Type: text/xml; charset=utf-8
Content-Length: 1323
Accept-Encoding: gzip, deflate
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><CurrentURI>x-sonosapi-radio:ST%3a4264132915342159263?sid=236&sn=0</CurrentURI><CurrentURIMetaData><DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" ><item id="000c206cST%3a4264132915342159263" parentID="0" restricted="false"><upnp:class>object.item.audioItem</upnp:class><dc:title>Washed Out Radio</dc:title><upnp:albumArtURI></upnp:albumArtURI><r:description></r:description><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON60423_X_#Svc60423-0-Token</desc><res protocolInfo="x-sonosapi-radio:*:*:*">x-sonosapi-radio:ST%3a4264132915342159263?sid=236&amp;sn=0</res></item></DIDL-Lite></CurrentURIMetaData></u:SetAVTransportURI></s:Body></s:Envelope>
(SONOS)GetResponse: HTTP/1.1 200 OK
(SONOS)GetResponse: CONTENT-LENGTH: 266
(SONOS)GetResponse: CONTENT-TYPE: text/xml; charset="utf-8"
(SONOS)GetResponse: EXT:
(SONOS)GetResponse: Server: Linux UPnP/1.0 Sonos/50.1-65071 (ZPS1)
(SONOS)GetResponse: Connection: close
(SONOS)GetResponse:
(SONOS)__connectAddr: connected to socket(0x7fc1bc04fd98)
(SONOS)SendRequest: POST /MediaRenderer/AVTransport/Control HTTP/1.1
Host: 192.168.128.31:1400
User-Agent: libnoson/1.12.5
Connection: close
Accept-Charset: utf-8
Content-Type: text/xml; charset=utf-8
Content-Length: 304
Accept-Encoding: gzip, deflate
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#Play"
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Play xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Play></s:Body></s:Envelope>
(SONOS)Process: accepting new connection
(SONOS)ParseQuery: NOTIFY / HTTP/1.1
(SONOS)ParseQuery: HOST: 192.168.128.82:1400
(SONOS)ParseQuery: CONNECTION: close
(SONOS)ParseQuery: CONTENT-TYPE: text/xml
(SONOS)ParseQuery: CONTENT-LENGTH: 3432
(SONOS)ParseQuery: NT: upnp:event
(SONOS)ParseQuery: NTS: upnp:propchange
(SONOS)ParseQuery: SID: uuid:RINCON_B8E93759FFD801400_sub0000002249
(SONOS)ParseQuery: SEQ: 1
(SONOS)ParseQuery:
(SONOS)Process: TransportState = STOPPED
(SONOS)Process: CurrentPlayMode = NORMAL
(SONOS)Process: CurrentCrossfadeMode = 0
(SONOS)Process: NumberOfTracks = 0
(SONOS)Process: CurrentTrack = 0
(SONOS)Process: CurrentSection = 0
(SONOS)Process: CurrentTrackURI =
(SONOS)Process: CurrentTrackDuration = 0:00:00
(SONOS)Process: CurrentTrackMetaData =
(SONOS)Process: r:NextTrackURI =
(SONOS)Process: r:NextTrackMetaData =
(SONOS)Process: r:EnqueuedTransportURI = x-sonosapi-radio:ST%3a4264132915342159263?sid=236&flags=0&sn=1
(SONOS)Process: r:EnqueuedTransportURIMetaData = <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="000c0000ST%3a4264132915342159263" parentID="-1" restricted="true"><dc:title>Washed Out Radio</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON60423_X_#Svc60423-fbf6234c-Token</desc><upnp:albumArtURI>https://mediaserver-cont-dc6-1-v4v6.pandora.com/images/public/int/1/0/6/4/859729104601_1080W_1080H.jpg</upnp:albumArtURI></item></DIDL-Lite>
(SONOS)Process: PlaybackStorageMedium = NETWORK
(SONOS)Process: AVTransportURI = x-sonosapi-radio:ST%3a4264132915342159263?sid=236&sn=0
(SONOS)Process: AVTransportURIMetaData = <DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" ><item id="000c206cST%3a4264132915342159263" parentID="0" restricted="false"><upnp:class>object.item.audioItem</upnp:class><dc:title>Washed Out Radio</dc:title><upnp:albumArtURI></upnp:albumArtURI><r:description></r:description><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON60423_X_#Svc60423-0-Token</desc><res protocolInfo="x-sonosapi-radio:*:*:*">x-sonosapi-radio:ST%3a4264132915342159263?sid=236&sn=0</res></item></DIDL-Lite>
(SONOS)Process: CurrentTransportActions = Set, Play, X_DLNA_SeekTrackNr
(SONOS)Process: r:CurrentValidPlayModes = CROSSFADE
(SONOS)HandleEventMessage: uuid:RINCON_B8E93759FFD801400_sub0000002249 SEQ=1 AVT
(SONOS)__connectAddr: connected to socket(0x561564d95918)
(SONOS)SendRequest: POST /MediaRenderer/AVTransport/Control HTTP/1.1
Host: 192.168.128.31:1400
User-Agent: libnoson/1.12.5
Connection: close
Accept-Charset: utf-8
Content-Type: text/xml; charset=utf-8
Content-Length: 310
Accept-Encoding: gzip, deflate
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#GetPositionInfo"
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetPositionInfo xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID></u:GetPositionInfo></s:Body></s:Envelope>
(SONOS)GetResponse: HTTP/1.1 200 OK
(SONOS)GetResponse: CONTENT-LENGTH: 240
(SONOS)GetResponse: CONTENT-TYPE: text/xml; charset="utf-8"
(SONOS)GetResponse: EXT:
(SONOS)GetResponse: Server: Linux UPnP/1.0 Sonos/50.1-65071 (ZPS1)
(SONOS)GetResponse: Connection: close
(SONOS)GetResponse:
(SONOS)GetResponse: HTTP/1.1 200 OK
(SONOS)GetResponse: CONTENT-LENGTH: 490
(SONOS)GetResponse: CONTENT-TYPE: text/xml; charset="utf-8"
(SONOS)GetResponse: EXT:
(SONOS)GetResponse: Server: Linux UPnP/1.0 Sonos/50.1-65071 (ZPS1)
(SONOS)GetResponse: Connection: close
(SONOS)GetResponse:
(SONOS)Request: Track = 0
(SONOS)Request: TrackDuration = 0:00:00
(SONOS)Request: RelTime = 0:00:00
(SONOS)Request: AbsTime = NOT_IMPLEMENTED
(SONOS)Request: RelCount = 2147483647
(SONOS)Request: AbsCount = 2147483647
(SONOS)Process: accepting new connection
(SONOS)ParseQuery: NOTIFY / HTTP/1.1
(SONOS)ParseQuery: HOST: 192.168.128.82:1400
(SONOS)ParseQuery: CONNECTION: close
(SONOS)ParseQuery: CONTENT-TYPE: text/xml
(SONOS)ParseQuery: CONTENT-LENGTH: 3666
(SONOS)ParseQuery: NT: upnp:event
(SONOS)ParseQuery: NTS: upnp:propchange
(SONOS)ParseQuery: SID: uuid:RINCON_B8E93759FFD801400_sub0000002249
(SONOS)ParseQuery: SEQ: 2
(SONOS)ParseQuery:
(SONOS)Process: TransportState = STOPPED
(SONOS)Process: CurrentPlayMode = NORMAL
(SONOS)Process: CurrentCrossfadeMode = 0
(SONOS)Process: NumberOfTracks = 0
(SONOS)Process: CurrentTrack = 0
(SONOS)Process: CurrentSection = 0
(SONOS)Process: CurrentTrackURI =
(SONOS)Process: CurrentTrackDuration = 0:00:00
(SONOS)Process: CurrentTrackMetaData =
(SONOS)Process: r:NextTrackURI =
(SONOS)Process: r:NextTrackMetaData =
(SONOS)Process: r:EnqueuedTransportURI = x-sonosapi-radio:ST%3a4264132915342159263?sid=236&flags=0&sn=1
(SONOS)Process: r:EnqueuedTransportURIMetaData = <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="000c0000ST%3a4264132915342159263" parentID="-1" restricted="true"><dc:title>Washed Out Radio</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON60423_X_#Svc60423-fbf6234c-Token</desc><upnp:albumArtURI>https://mediaserver-cont-ch1-2-v4v6.pandora.com/images/public/int/1/0/6/4/859729104601_1080W_1080H.jpg</upnp:albumArtURI></item></DIDL-Lite>
(SONOS)Process: PlaybackStorageMedium = NETWORK
(SONOS)Process: AVTransportURI = x-sonosapi-radio:ST%3a4264132915342159263?sid=236&sn=0
(SONOS)Process: AVTransportURIMetaData = <DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" ><item id="000c206cST%3a4264132915342159263" parentID="0" restricted="false"><upnp:class>object.item.audioItem</upnp:class><dc:title>Washed Out Radio</dc:title><upnp:albumArtURI></upnp:albumArtURI><r:description></r:description><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON60423_X_#Svc60423-0-Token</desc><res protocolInfo="x-sonosapi-radio:*:*:*">x-sonosapi-radio:ST%3a4264132915342159263?sid=236&sn=0</res></item></DIDL-Lite>
(SONOS)Process: CurrentTransportActions = Set, Play, X_DLNA_SeekTrackNr
(SONOS)Process: r:CurrentValidPlayModes = CROSSFADE
(SONOS)Process: TransportStatus = ERROR_NO_CONTENT
(SONOS)Process: TransportErrorDescription = 69,0,,,sn_1,
(SONOS)Process: TransportErrorURI = https://sonos.pandora.com/v2.1/playback/radio/ST%3a4264132915342159263/
(SONOS)HandleEventMessage: uuid:RINCON_B8E93759FFD801400_sub0000002249 SEQ=2 AVT
(SONOS)__connectAddr: connected to socket(0x5615652ae1a8)
(SONOS)SendRequest: POST /MediaRenderer/AVTransport/Control HTTP/1.1
Host: 192.168.128.31:1400
User-Agent: libnoson/1.12.5
Connection: close
Accept-Charset: utf-8
Content-Type: text/xml; charset=utf-8
Content-Length: 310
Accept-Encoding: gzip, deflate
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#GetPositionInfo"
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetPositionInfo xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID></u:GetPositionInfo></s:Body></s:Envelope>
(SONOS)GetResponse: HTTP/1.1 200 OK
(SONOS)GetResponse: CONTENT-LENGTH: 490
(SONOS)GetResponse: CONTENT-TYPE: text/xml; charset="utf-8"
(SONOS)GetResponse: EXT:
(SONOS)GetResponse: Server: Linux UPnP/1.0 Sonos/50.1-65071 (ZPS1)
(SONOS)GetResponse: Connection: close
(SONOS)GetResponse:
(SONOS)Request: Track = 0
(SONOS)Request: TrackDuration = 0:00:00
(SONOS)Request: RelTime = 0:00:00
(SONOS)Request: AbsTime = NOT_IMPLEMENTED
(SONOS)Request: RelCount = 2147483647
(SONOS)Request: AbsCount = 2147483647