jishi / node-sonos-http-api

An HTTP API bridge for Sonos easing automation. Hostable on any node.js capable device, like a raspberry pi or similar.
http://jishi.github.io/node-sonos-http-api/
MIT License
1.83k stars 462 forks source link

500 Error from browser request to play Spotify track but Spotify account is added to SONOS Service list #780

Open Eitschb opened 3 years ago

Eitschb commented 3 years ago

Hello,

I have the same problem like foxtech60 in Issue #777 but my Spotify-Account is added to Sonos list correctly. I have no idea what I can do now. Did someone solve this problem? I created a logfile as it was descriped in #777 and uploaded it here.

best regards

Eitschb

trace.log

bayratt commented 3 years ago

My first project, so I'm sure plenty of user error on my side - but I'm getting same issue when invoking /MediaRenderer/AVTransport/Control at Object.invoke referencing soap.js, and Player.addURIToQueue for Player.js, and Spotify.js files.

MFietze commented 3 years ago

I have the same problem with Spotify, especially when I try to play a playlist with 500+ tracks. But I think that the problem relies on Sonos and Spotify, because when I try to add the same playlist to the queue with the official Sonos app, shortly after I used the HTTP Api, it throws an error too (Error 701).

But the error seems to happen quite random. I wrote a script which requests the HTTP Api multiple times until it gets a 200 successful response. Sometimes this happens after the first try, but sometimes it has to try it 8+ times.

bayratt commented 3 years ago

@MFietze Could you share the script to continue to request multiple times? Trying anything to get this working for the kids