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

Stuck Loading Large Playlist #28

Closed
Atrociously opened this issue Nov 8, 2021 · 4 comments
Closed

Stuck Loading Large Playlist #28

Atrociously opened this issue Nov 8, 2021 · 4 comments

Comments

@Atrociously
Copy link

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
@aome510
Copy link
Owner

aome510 commented 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.

@Atrociously
Copy link
Author

Atrociously commented 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!

@aome510
Copy link
Owner

aome510 commented 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.

@aome510
Copy link
Owner

aome510 commented Nov 20, 2021

Should be fixed with ramsayleung/rspotify#282

@aome510 aome510 closed this as completed Nov 20, 2021
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