Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spt keeps returning to error when I connect to Sonos #1111

Open
koenichiwa opened this issue Dec 13, 2023 · 2 comments
Open

spt keeps returning to error when I connect to Sonos #1111

koenichiwa opened this issue Dec 13, 2023 · 2 comments

Comments

@koenichiwa
Copy link

The Sonos box is not detected by spt. This is handled in #426.

When I change the device with another Spotify player to my Sonos box, spt shows an extensive error message, which I can't copy/paste: a convert failure due to a null. The only variable that seems to be null is context.

There is a prompt to "click esc to return", but when I do that, it shows the main window shortly and immediately returns to the error message. This means that I can't control spt in any way anymore when a song is played from my Sonos speaker, and I have to return to the standard Spotify player.

I'm willing to help resolve this issue, but I will need guidance.

@flavour-of-qualia
Copy link

flavour-of-qualia commented Dec 16, 2023

Yes, for me it's the same! And your issue was the first in the issue list for me (god thank you)

{
  "device" : {
    "id" : null,
    "is_active" : true,
    "is_private_session" : false,
    "is_restricted" : true,
    "name" : "Sonos Ream",
    "supports_volume" : true,
    "type" : "Speaker",
    "volume_percent" : 26
  },
  "shuffle_state" : false,
  "repeat_state" : "context",
  "timestamp" : 1702737003008,
  "context" : {
    "external_urls" : {
      "spotify" : "https://open.spotify.com/playlist/37i9dQZEVXcOngvkeB8XNX"
    },
    "href" : "https://api.spotify.com/v1/playlists/37i9dQZEVXcOngvkeB8XNX",
    "type" : "playlist",
    "uri" : "spotify:playlist:37i9dQZEVXcOngvkeB8XNX"
  },
  "progress_ms" : 200437
}

@flavour-of-qualia
Copy link

Maybe it would help just to allow the device ID null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants