librespot-org / librespot

Open Source Spotify client library
MIT License
4.7k stars 573 forks source link

Spotify Connect stopped working recently #1123

Closed chrisgrieser closed 1 year ago

chrisgrieser commented 1 year ago

Describe the bug I am a user of spotify-tui and noticed that since today/yesterday, it appears that Spotify Connect is not working. I reported the issue there and was told that this seems to be an upstream issue with Spotify API changes which I should report here.

To reproduce Steps to reproduce the behavior:

  1. Install spotify-tui
  2. setup for making spotify-tui work with Spotify Connect
  3. start the tui, press d (for device) and select a Spotify Connect device (in my case an Alexa speaker)
  4. Result is this error

CleanShot 2023-02-22 at 19 35 38

Host (what you are running librespot on):

kingosticks commented 1 year ago

Imagine we have never used spotify-tui and don't want to start. What is d doing? Device discovery? Do other devices work? Also assume we don't have an Alexa device, can you capture the getInfo response your Alexa device provided?

Librespot works fine discovering, connecting and playing to the official Spotify app on my Android phone.

chrisgrieser commented 1 year ago

What is d doing? Device discovery?

yes, just selecting devices

Do other devices work?

controlling other devices (web player, desktop client) via spotify-tui works fine. Controlling Alexa devices via the official spotify client, phone or web player works fine.

Controlling alexa devices via non-first party clients does not work (tried spotify-tui and spotify-player, I am not aware of any other that can use Spotify Connect).

Also assume we don't have an Alexa device, can you capture the getInfo response your Alexa device provided?

I don't know how to do that, tbh – I have never used and heard of librespot until I was told to report the issue here an hour ago.

kingosticks commented 1 year ago

Fair enough. Hopefully someone at spotify-tui can fill in the gaps of how exactly they are using librespot and how to get logs.

Neburb commented 1 year ago

Hey, I found this while searching through google, and I think I can add my two cents here. Are you people using the spotify web API under the hood for librespot? I have the same issue while using the plain spotify web API. Using any other device (Phone, PC app, etc) while calling play works as a device_id, but using an Alexa echo device ID doesn't. I don't know if it is an issue with Alexa or Spotify web API, but I started having this issue a day, or a couple of days ago.

kingosticks commented 1 year ago

No, we don't This isn't our bug, it's a misunderstanding. I think it should be closed.

chrisgrieser commented 1 year ago

oh sure, yeah I'll close this since it isn't related to librespot.