-
Notifications
You must be signed in to change notification settings - Fork 748
Open
Labels
Description
Description
Librespot fails to play some tracks when picking them from inside the album, but plays fine when the album is played from the top with the green play button. example album
Version
0.7.1
. The oldest I've used is 0.6.0
where this bug was also present.
How to reproduce
- Launch
librespot
with whatever arguments - Connect from a PC
- In the client click try to play any track from the above-linked album
- Track fails to play and client displays the "spotify can't play this right now if you have the file on your computer you can import it" toast. Librespot logs this error:
ERROR librespot_connect::spirc] failed to handle request: Invalid state { could not find track None in context of 21 }
Log
[2025-09-21T15:24:32Z TRACE librespot_core::dealer] dealer request hm://connect-state/v1/player/command
[2025-09-21T15:24:32Z TRACE librespot_core::dealer::protocol] message was sent with gzip encoding
[2025-09-21T15:24:32Z TRACE librespot_core::dealer::protocol] websocket request: Object {
"command": Object {
"context": Object {
"restrictions": Object {},
"uri": String("spotify:album:7vYR7oLh93zb38m880M8bd"),
"url": String("context://spotify:album:7vYR7oLh93zb38m880M8bd"),
},
"endpoint": String("play"),
"logging_params": Object {
"command_id": String("72bed6389e6d310b3f3ab22a9ee4008a"),
"command_initiated_time": Number(1758468272614),
"command_received_time": Number(1758468272615),
"device_identifier": String("c726a5fdc8296668ff3a52e6787bfea08bd12b92"),
"interaction_ids": Array [
String("4d54dbdd-b2a5-4ea7-9f5a-9caa7d82850f"),
],
"page_instance_ids": Array [
String("6a26e7eb-7e58-46b7-bfce-9d0d4603f12a"),
],
},
"options": Object {
"always_play_something": Bool(false),
"audio_stream": String("default"),
"initially_paused": Bool(false),
"license": String("premium"),
"player_options_override": Object {},
"prefetch_level": String("none"),
"session_id": String(""),
"skip_to": Object {
"track_index": Number(9),
"track_uid": String("622a188ce71d9ccc0f1d"),
"track_uri": String("spotify:track:5SDOB8Zdt8XNt0b0GzgPpg"),
},
"suppressions": Object {},
"system_initiated": Bool(false),
},
"play_options": Object {
"only_for_local_device": Bool(false),
"operation": String("replace"),
"override_restrictions": Bool(false),
"reason": String("interactive"),
"system_initiated": Bool(false),
"trigger": String("immediately"),
},
"play_origin": Object {
"device_identifier": String("c726a5fdc8296668ff3a52e6787bfea08bd12b92"),
"feature_identifier": String("album"),
"feature_version": String("xpui-snapshot_2025-09-08_1757321627224_8c88c31"),
"referrer_identifier": String("your_library"),
},
},
"message_id": Number(1826648879),
"play_on_secondary_stream": Null,
"sent_by_device_id": String("c726a5fdc8296668ff3a52e6787bfea08bd12b92"),
"target_alias_id": Null,
}
[2025-09-21T15:24:32Z DEBUG librespot_connect::spirc] handling: 'endpoint: play' from c726a5fdc8296668ff3a52e6787bfea08bd12b92
[2025-09-21T15:24:32Z DEBUG librespot_connect::state::context] context didn't change, no reset
[2025-09-21T15:24:32Z DEBUG librespot_connect::spirc] context <spotify:album:7vYR7oLh93zb38m880M8bd> didn't change, no resolving required
[2025-09-21T15:24:32Z DEBUG librespot_connect::spirc] play track <Some(Uri("spotify:track:5SDOB8Zdt8XNt0b0GzgPpg"))>
[2025-09-21T15:24:32Z ERROR librespot_connect::spirc] failed to handle request: Invalid state { could not find track None in context of 21 }
[2025-09-21T15:24:32Z DEBUG librespot_core::dealer::manager] replying to ws request: Failure
Host (what you are running librespot
on):
- OS: Linux
- Platform: Pi 5