janbar / noson-app

The essential to control music from your SONOS devices on Linux platforms
GNU General Public License v3.0
343 stars 28 forks source link

Anyone manage to register Google Music or YouTube Music #81

Open rocteur opened 5 years ago

rocteur commented 5 years ago

I notice some people had an issue in 2017 which was unsolved but as I have the problem today, I thought I'd ask if anyone has managed to do it ?

UbuntuMate 19.04

The end of the log file looks like this: SOAPAction: "http://www.sonos.com/Services/1.1#getDeviceLinkCode"^M$ ^M$ <?xml version="1.0" encoding="utf-8"?>5C-AA-FD-F0-2A-3A:FSonos</s:Header>Sonos_Ys8Q9oFOvPMKDLq3g0ezdTwvr0</ns:householdId></ns:getDeviceLinkCode></s:Body></s:Envelope>$ (SONOS)GetResponse: HTTP/1.1 500 Internal Server Error$ (SONOS)GetResponse: Content-Type: text/xml; charset=UTF-8$ (SONOS)GetResponse: Date: Fri, 30 Aug 2019 15:10:49 GMT$ (SONOS)GetResponse: Expires: Fri, 30 Aug 2019 15:10:49 GMT$ (SONOS)GetResponse: Cache-Control: private, max-age=0$ (SONOS)GetResponse: X-Content-Type-Options: nosniff$ (SONOS)GetResponse: X-Frame-Options: SAMEORIGIN$ (SONOS)GetResponse: X-XSS-Protection: 1; mode=block$ (SONOS)GetResponse: Content-Length: 418$ (SONOS)GetResponse: Server: GSE$ (SONOS)GetResponse: Alt-Svc: quic=":443"; ma=2592000; v="46,43,39"$ (SONOS)GetResponse: Connection: close$ (SONOS)GetResponse: $ (SONOS)WSResponse: server error (500)$ (SONOS)SetFault: TAG (Fault)$ (SONOS)SetFault: faultcode (soap:Client)$ (SONOS)SetFault: faultstring (Unable to authorize Google Play Music. Please contact Sonos Customer Care.)$
(SONOS)GetDeviceLinkCode: parse xml failed$

janbar commented 5 years ago

The google services for Sonos needs something I can't divine. Currently many services work, but those from google don't work. The connection with music service is encrypted and obviously I cannot sniff what the service expect.

r00t3g commented 4 years ago

Nevertheless, if you start YT Music or Play Music playback from another device with official Sonos App, Noson still work perfectly to control the playback queue.

jimbo8098 commented 3 years ago

Still seeing this issue on my end btw. My logs to add to this:

(SONOS)SSLSessionFactory: SSL engine initialized
(SONOS)WSResponse: bad request (403)
(SONOS)DoCall: parse xml failed
(SONOS)GetAppLink: parse xml failed

Seems like the same thing happening here.

dunkmyster19 commented 2 years ago

Nothing happens when I click on start service registration for Youtube Music. I found out, that once you set Youtube Music on your Sonos app on your phone, it is automatically synched to all Sonos apps that have Youtube and logs you in automatically. Like, once I setup Youtube on my phone, the Windows Sonos app automatically synched the user credentials from the phone without me having to do anything. I found out about this automatic credentials/password/registration sync thing, because I talked to a tech from Sonos - the Youtube service on Windows Sonos app wasn't accepting my password and I hadn't even tried using the Youtube service on my Windows Sonos app before contacting support. Makes me wonder how many other sonos services like Tidal and so on, have this automatic registration sync thing happening. My guess is this automatic registration sync thing could be a problem for coding the service registration on Noson. Just guessing here.

cocoonkid commented 1 year ago

Yes. this is an unfortunate issue here as well.

image

Hopefully @janbar can advise on a fix?

Thanks so much!

wujastyk commented 1 month ago

Still a problem for me. Latest Noson as of today, 5.6.7 (libnoson 2.12.9).