[GH-ISSUE #28] Stuck Loading Large Playlist #5

Closed
opened 2026-03-02 23:43:34 +03:00 by kerem · 4 comments
Owner

Originally created by @Atrociously on GitHub (Nov 8, 2021).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/28

Firstly I would like to say that I love this project but I have this one problem with it so far.

When I try to open a larger playlist that I have I run into problems, it gets stuck loading the playlist. But playback of the last item still works.

The issue title says that there is an issue opening large playlists but from what I could determine from the log files that I was looking through this looks like an issue with parsing specific PlayableItems If there is anything that you can to to look into this that would be great here is a section of the logs that I thought was important. If you need more log info let me know.

2021-11-08T17:47:49.309565Z DEBUG reqwest::async_impl::client: response '200 OK' for https://api.spotify.com/v1/playlists/2RI4NLi6npcHfCNQQxP3nM/tracks?offset=900&limit=100    
2021-11-08T17:47:49.329055Z DEBUG hyper::proto::h1::conn: incoming body completed
2021-11-08T17:47:49.329091Z DEBUG hyper::client::pool: pooling idle connection for ("https", api.spotify.com)
2021-11-08T17:47:49.345084Z  WARN spotify_player::client::handlers: failed to handle client request: error decoding response body: data did not match any variant of untagged enum PlayableItem at line 7643 column 5

Caused by:
    data did not match any variant of untagged enum PlayableItem at line 7643 column 5
2021-11-08T17:47:51.117104Z DEBUG librespot_audio::fetch: File bbc67baf52a28dab4cfec9e348ae0135a955596b complete, saving to cache
Originally created by @Atrociously on GitHub (Nov 8, 2021). Original GitHub issue: https://github.com/aome510/spotify-player/issues/28 Firstly I would like to say that I love this project but I have this one problem with it so far. When I try to open a larger playlist that I have I run into problems, it gets stuck loading the playlist. But playback of the last item still works. The issue title says that there is an issue opening large playlists but from what I could determine from the log files that I was looking through this looks like an issue with parsing specific PlayableItems If there is anything that you can to to look into this that would be great here is a section of the logs that I thought was important. If you need more log info let me know. ``` 2021-11-08T17:47:49.309565Z DEBUG reqwest::async_impl::client: response '200 OK' for https://api.spotify.com/v1/playlists/2RI4NLi6npcHfCNQQxP3nM/tracks?offset=900&limit=100 2021-11-08T17:47:49.329055Z DEBUG hyper::proto::h1::conn: incoming body completed 2021-11-08T17:47:49.329091Z DEBUG hyper::client::pool: pooling idle connection for ("https", api.spotify.com) 2021-11-08T17:47:49.345084Z WARN spotify_player::client::handlers: failed to handle client request: error decoding response body: data did not match any variant of untagged enum PlayableItem at line 7643 column 5 Caused by: data did not match any variant of untagged enum PlayableItem at line 7643 column 5 2021-11-08T17:47:51.117104Z DEBUG librespot_audio::fetch: File bbc67baf52a28dab4cfec9e348ae0135a955596b complete, saving to cache ```
kerem closed this issue 2026-03-02 23:43:34 +03:00
Author
Owner

@aome510 commented on GitHub (Nov 8, 2021):

Hi @Atrociously, thank you for trying this out.

Regarding the problem, I experienced the same thing before actually. My best guess at that time is that the playlist contains a deleted or unavailable track so the application cannot parse response into corresponding Playlist struct but haven't take a deeper look.

Hope this is a not big problem for you and it's one thing I can definitely look into.

In the mean time, it would be helpful if you could send me the playlist's information so I can reproduce the issue quicker.

<!-- gh-comment-id:963424602 --> @aome510 commented on GitHub (Nov 8, 2021): Hi @Atrociously, thank you for trying this out. Regarding the problem, I experienced the same thing before actually. My best guess at that time is that the playlist contains a deleted or unavailable track so the application cannot parse response into corresponding `Playlist` struct but haven't take a deeper look. Hope this is a not big problem for you and it's one thing I can definitely look into. In the mean time, it would be helpful if you could send me the playlist's information so I can reproduce the issue quicker.
Author
Owner

@Atrociously commented on GitHub (Nov 8, 2021):

Sure the specific playlist that I have been attempting to load is this one, But that one is rather large so it may be difficult to find the problem going through that one. However there may be shorter playlists that have the same issue.
EDIT:
Thanks for the quick response by the way!

<!-- gh-comment-id:963429717 --> @Atrociously commented on GitHub (Nov 8, 2021): Sure the specific playlist that I have been attempting to load is [this one](https://open.spotify.com/playlist/2RI4NLi6npcHfCNQQxP3nM), But that one is rather large so it may be difficult to find the problem going through that one. However there may be shorter playlists that have the same issue. EDIT: Thanks for the quick response by the way!
Author
Owner

@aome510 commented on GitHub (Nov 8, 2021):

@Atrociously filed an issue in rspotify. They assume that TrackId is not null when getting a playlist's items but you seem to find a case when it is null.

<!-- gh-comment-id:963468179 --> @aome510 commented on GitHub (Nov 8, 2021): @Atrociously filed an issue in [rspotify](https://github.com/ramsayleung/rspotify/issues/279). They assume that `TrackId` is not null when getting a playlist's items but you seem to find a case when it is null.
Author
Owner

@aome510 commented on GitHub (Nov 20, 2021):

Should be fixed with https://github.com/ramsayleung/rspotify/pull/282

<!-- gh-comment-id:974693285 --> @aome510 commented on GitHub (Nov 20, 2021): Should be fixed with https://github.com/ramsayleung/rspotify/pull/282
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#5
No description provided.