bencevans / node-sonos

🔈 Sonos Media Player Interface/Client
https://www.npmjs.com/package/sonos
MIT License
703 stars 147 forks source link

getSpotifyConnectInfo() does not work anymore #458

Closed hklages closed 4 years ago

hklages commented 4 years ago

getSpotifyConnectInfo and even the plain http code results in an error.

Current Behavior

request failed with status code 404

Possible Solution

It seems that Sonos has removed some pages from the internal webserver recently.

Sample code or executed example

Versions (and Environment)

current

svrooij commented 4 years ago

It seems like axios started parsing the response already.

If I change these lines to:

Sonos.prototype.getSpotifyConnectInfo = async function () {
  const uri = `http://${this.host}:${this.port}/spotifyzc?action=getInfo`
  return request(uri).then(response => response.data)
}

It just works again, I have Sonos version 10.6.1 by the way, not sure if that matters.

bencevans commented 4 years ago

:tada: This issue has been resolved in version 1.13.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: