spot icon indicating copy to clipboard operation
spot copied to clipboard

Spotify API error: invalid type: null

Open XoloitzcuintiI opened this issue 1 year ago • 1 comments

Everytime I launch Spot via Flatpak, I get a notifcation in Spot that says: "An Error Occured. Check logs for details!" Distro: Fedora 40 (Workstation) (Desktop) Spot Version: 0.4.1 Logs:

6:47:20 PM spot: [2024-05-14T22:47:20Z ERROR spot::app::components] Spotify API error: invalid type: null, expected a sequence at line 1 column 3696
 6:47:20 PM spot: [2024-05-14T22:47:20Z ERROR spot::app::components] Spotify API error: invalid type: null, expected a sequence at line 1 column 3696
 6:47:20 PM spot: [src/api/cached_client.rs:256:17] e = Error("invalid type: null, expected a sequence", line: 1, column: 3696)
 6:47:20 PM spot: [src/api/cached_client.rs:256:17] &cache_key = "me_playlists_0_30.json"
 6:47:19 PM spot: [2024-05-14T22:47:19Z ERROR spot::app::components] Spotify API error: invalid type: null, expected a sequence at line 1 column 3696
 6:47:19 PM spot: [src/api/cached_client.rs:256:17] e = Error("invalid type: null, expected a sequence", line: 1, column: 3696)
 6:47:19 PM spot: [src/api/cached_client.rs:256:17] &cache_key = "me_playlists_0_30.json"
 6:47:17 PM spot: [src/api/cached_client.rs:256:17] e = Error("invalid type: null, expected a sequence", line: 1, column: 3696)
 6:47:17 PM spot: [src/api/cached_client.rs:256:17] &cache_key = "me_playlists_0_30.json"
 6:47:17 PM spot: GtkLabel 0x55855edf5ca0 (label) reported min height 26 and natural height 22 in measure() with for_size=-1; natural size must be >= min size

Stack Retrace:

(process:2): Adwaita-CRITICAL **: 18:55:32.911: adw_leaflet_set_visible_child: assertion 'contains_child' failed
[src/api/cached_client.rs:256:17] &cache_key = "me_playlists_0_30.json"
[src/api/cached_client.rs:256:17] e = Error("invalid type: null, expected a sequence", line: 1, column: 3696)

(spot:2): Gtk-WARNING **: 18:55:33.105: GtkLabel 0x557cce4bcca0 (label) reported min height 26 and natural height 22 in measure() with for_size=-1; natural size must be >= min size
[src/api/cached_client.rs:256:17] &cache_key = "me_playlists_0_30.json"
[src/api/cached_client.rs:256:17] e = Error("invalid type: null, expected a sequence", line: 1, column: 3696)
[2024-05-14T22:55:35Z ERROR spot::app::components] Spotify API error: invalid type: null, expected a sequence at line 1 column 3696
[src/api/cached_client.rs:256:17] &cache_key = "me_playlists_0_30.json"
[src/api/cached_client.rs:256:17] e = Error("invalid type: null, expected a sequence", line: 1, column: 3696)
[2024-05-14T22:55:35Z ERROR spot::app::components] Spotify API error: invalid type: null, expected a sequence at line 1 column 3696

XoloitzcuintiI avatar May 14 '24 22:05 XoloitzcuintiI

I did some testing on the repo. It doesn't know how to handle playlists with no images, and crashes...

In the meantime while this isn't fixed, add an image or delete any playlists you have that has the default beamed eighth-note image.

potatoes1286 avatar Jun 25 '24 03:06 potatoes1286