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

Spotify API error: invalid type: null #715

Open
XoloitzcuintiI opened this issue May 14, 2024 · 1 comment · Fixed by #716
Open

Spotify API error: invalid type: null #715

XoloitzcuintiI opened this issue May 14, 2024 · 1 comment · Fixed by #716
Labels
bug Something isn't working

Comments

@XoloitzcuintiI
Copy link

XoloitzcuintiI commented May 14, 2024

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 XoloitzcuintiI added the bug Something isn't working label May 14, 2024
@potatoes1286
Copy link

potatoes1286 commented Jun 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants