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

Spotify plugin not working with Spotify API #664

Open
twaclaw opened this issue Dec 7, 2023 · 0 comments
Open

Spotify plugin not working with Spotify API #664

twaclaw opened this issue Dec 7, 2023 · 0 comments

Comments

@twaclaw
Copy link

twaclaw commented Dec 7, 2023

Setup: Raspberry Pi 4, Spotify Plugin 4.0.3, and Volumio image (3.569).

The Spotify plugin works as intended if I use the Spotify (mobile) App to play music; however, if I use the Spotify API I get a 404 and the plugin crashes. My application uses the API to play music. I have to manually restart the plugin in Volumio and it starts with a new device_id each time.

For instance, if I use the endpoint https://api.spotify.com/v1/me/player/play with parameters

{
    "context_uri": "spotify:album:5ht7ItJgpBH7W6vJ5BqpPr"
}

I get a 404.

In the RPi I see this error.

volumio go-librespot[2583]: time="2023-12-06T21:53:07+01:00" level=error msg="failed unmarshalling dealer request payload" error="json: cannot unmarshal number into Go struct field RequestPayload.target_alias_id of type string" uri="hm://connect-state/v1/player/command"

The same API works if I use the device_id of my cellphone, and is working as well with other implementations of librespot (in different RPi packages and audiophile images).

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

1 participant