mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 16:25:52 +03:00
[GH-ISSUE #1508] Starting playback of several tracks via their URIs #684
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#684
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @maliavko on GitHub (Jun 10, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1508
Description
Starting playback from Spotify Web API for several tracks via list of URIs generates an error response, when the current playback device is Librespot.
If the device is official Spotify desktop client or web-page - everything goes well.
Request body example:
Version
Built from sources on Windows
librespot 0.6.0-dev
8b72954(Built on 2025-06-02, Build ID: BQcgs54b, Profile: release)How to reproduce
Steps to reproduce the behavior in librespot e.g.
librespotin win cmdlibrespot.exe --name test-libre --verbose --access-token ****Requesting https://gew4-spclient.spotify.com:443/connect-state/v1/devices/732d5f3b265c469083d7da95c8dbc78a1a2711a3?product=0&country=CZ&salt=1045896257) ->732d5f3b265c469083d7da95c8dbc78a1a2711a3{"uris":["spotify:track:1ZyQEn0iceHj0Lbt6I6Op3"]}Log
I am not sure the full log here is really needed, just copying for now the part of the moment of execution of a command in Web, with several lines before and after.
Host (what you are running
librespoton):Additional context
If I execute the command, connected to some Spotify client - everything goes smooth, and the musics starts. Switching to Librespot later is going right as well.
@photovoltex commented on GitHub (Jun 10, 2025):
403 usually means that there are missing rights to access the endpoint we want to use internally.
Could you try this again with an access-token generated via login5 or with full scope access?
I will look later into it a bit deeper but an initial check if it's permission or logic related would be nice to know :) Thanks in advance
@photovoltex commented on GitHub (Jun 10, 2025):
Tho looking at the log it seems more like an obvious logic error. Probably an assumption that was made incorrectly.
@photovoltex commented on GitHub (Jun 10, 2025):
It seems to originate from here
https://github.com/librespot-org/librespot/blob/dev/connect%2Fsrc%2Fspirc.rs#L992. It might be that the logic broke while merging a different branch into it.
@maliavko commented on GitHub (Jun 10, 2025):
Hey,
If you mean launching librespot with the
--enable-oauthoption, so I've just tried, paired the app and provided all the acceses throught the web-form, and result is the same.I have an app registered on Spotify https://developer.spotify.com/ with access to Web API and Playback API, my app goes through auth flow with the scope (not sure how to generate full-access without specifying full list of accesses):
... and I hand over the access token into librespot process usually.
For the sake of test I obtained a token from their getting started page with the button "Reveal your access token", and got the same error result.
@photovoltex commented on GitHub (Jun 10, 2025):
Oh xD. A very simple bug which most certainly was created unintentionally while merging^^;
Thanks for the find :D