[GH-ISSUE #112] Albums view throws error #82

Closed
opened 2026-02-28 14:30:30 +03:00 by kerem · 5 comments
Owner

Originally created by @panmona on GitHub (Aug 18, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/112

When I go to the Albums page I get the following error:
Failed to read JSON: invalid type: null, expected a string at line 18201 column 20

Environment: Manjaro Linux 21.1.0

Originally created by @panmona on GitHub (Aug 18, 2021). Original GitHub issue: https://github.com/jpochyla/psst/issues/112 When I go to the Albums page I get the following error: `Failed to read JSON: invalid type: null, expected a string at line 18201 column 20` Environment: Manjaro Linux 21.1.0
kerem 2026-02-28 14:30:30 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jpochyla commented on GitHub (Aug 18, 2021):

Which artist is it?

<!-- gh-comment-id:901340573 --> @jpochyla commented on GitHub (Aug 18, 2021): Which artist is it?
Author
Owner

@joelarmstrong commented on GitHub (Aug 19, 2021):

I have the same issue, or a similar one (loading the "Albums" tab on the sidebar). The offending album (Electric Wizard - Come My Fanatics) has a null label:

          [snip]
          "is_playable" : true,
          "label" : null,
          "name" : "Come My Fanatics",
          "popularity" : 0,
          "release_date" : "2008-08-05",
          "release_date_precision" : "day",
          "total_tracks" : 8,
          [snip]

After creating a custom deserializer that handles null labels (instead of just a missing label) the tab loads fine.

<!-- gh-comment-id:901561256 --> @joelarmstrong commented on GitHub (Aug 19, 2021): I have the same issue, or a similar one (loading the "Albums" tab on the sidebar). The offending album (Electric Wizard - Come My Fanatics) has a null label: ``` [snip] "is_playable" : true, "label" : null, "name" : "Come My Fanatics", "popularity" : 0, "release_date" : "2008-08-05", "release_date_precision" : "day", "total_tracks" : 8, [snip] ``` After creating a custom deserializer that handles null `label`s (instead of just a *missing* `label`) the tab loads fine.
Author
Owner

@panmona commented on GitHub (Aug 19, 2021):

Which artist is it?

Sorry I meant to write Albums page.
Thank you @joelarmstrong for chiming in with the data!

<!-- gh-comment-id:901655347 --> @panmona commented on GitHub (Aug 19, 2021): > Which artist is it? Sorry I meant to write Albums page. Thank you @joelarmstrong for chiming in with the data!
Author
Owner

@jpochyla commented on GitHub (Aug 19, 2021):

Uff, thanks! Spotify API can be a bit weird sometimes (seems like label is not even documented anymore). Can you please confirm that eb7384a (in master) fixes the issue? Thanks!

<!-- gh-comment-id:901682929 --> @jpochyla commented on GitHub (Aug 19, 2021): Uff, thanks! Spotify API can be a bit weird sometimes (seems like label is not even documented anymore). Can you please confirm that eb7384a (in master) fixes the issue? Thanks!
Author
Owner

@panmona commented on GitHub (Aug 19, 2021):

@jpochyla Yes that fixes the issue for me.

<!-- gh-comment-id:901734697 --> @panmona commented on GitHub (Aug 19, 2021): @jpochyla Yes that fixes the issue for me.
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/psst#82
No description provided.