mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 17:35:50 +03:00
[GH-ISSUE #401] error loading playlists without images #214
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#214
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 @mochimisu on GitHub (Mar 25, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/401
Describe the bug
imagescan benullin some playlists. seems to be true for some old playlists, but also empty playlistsTo Reproduce
Playlist_cache.jsonspotify_playerExpected behaviour
Playlists should load
Log and backtrace
Relevant log line
2024-03-25T01:17:07.902710Z ERROR client_request{request=GetUserPlaylists}: spotify_player::client::handlers: Failed to handle client request: json parse error: invalid type: null, expected a sequence at line 1 column 392: invalid type: null, expected a sequence at line 1 column 392Screenshots

If applicable, add screenshots to help explain your problem.
Environment
Additional context
example problematic json
{"href":"https://api.spotify.com/v1/users/.../playlists?offset=0&limit=1","limit":1,"next":"https://api.spotify.com/v1/users/.../playlists?offset=1&limit=1","offset":0,"previous":null,"total":43,"items":[{"collaborative":false,"description":"","external_urls":{"spotify":"https://open.spotify.com/playlist/..."},"href":"https://api.spotify.com/v1/playlists/...","id":"...","images":null,"name":"My Playlist #26","owner":{"display_name":"...","external_urls":{"spotify":"https://open.spotify.com/user/..."},"href":"https://api.spotify.com/v1/users/...","id":"...","type":"user","uri":"spotify:user:..."},"primary_color":null,"public":true,"snapshot_id":"...","tracks":{"href":"https://api.spotify.com/v1/playlists/.../tracks","total":0},"type":"playlist","uri":"spotify:playlist:..."}]}@aome510 commented on GitHub (Mar 25, 2024):
I'm well aware of this issue: https://github.com/ramsayleung/rspotify/issues/459, it seems
rspotifydoesn't want to fix it. I implemented a patch but only forget-playlistAPI. Will create another patch forget-playlists.@aome510 commented on GitHub (Mar 25, 2024):
@mochimisu can you try running in https://github.com/aome510/spotify-player/pull/402 to see if it fixes the issue?
@Icelk commented on GitHub (Apr 1, 2024):
Before the next release, one may use the API to check which playlist is the culprit. Go the the spotify API documentation link below and test the query with limit = 50 offset = 0 on your own account (you need to be logged in):
https://developer.spotify.com/documentation/web-api/reference/get-a-list-of-current-users-playlists
Then Ctrl+F for
"images": null