[GH-ISSUE #534] Homepage shows JSONError at made_for_you part #324

Closed
opened 2026-02-28 14:32:09 +03:00 by kerem · 1 comment
Owner

Originally created by @RensOliemans on GitHub (Sep 26, 2024).
Original GitHub issue: https://github.com/jpochyla/psst/issues/534

Describe the bug
Psst shows the following error instead of the "Made for you" section on the homepage

Error: Failed to read JSON: unknown variant `NotFound`, expected one of `Podcast`, `Playlist`, `Artist`, `Album` at line 1 column 10791

To Reproduce
Open psst-gui

Expected behavior
I expect to see a made for you section.

Screenshots
Screenshot of psst-gui homepage.

Environment

  • OS: 6.10.10-arch1-1
  • Version: 4dfa43d-modified (installed using AUR)

Additional context
The problem seems to be that NotFound is one of the types in the JSON response. It's a response of the following request:

GET https://api-partner.spotify.com/pathfinder/v1/query?operationName=homeSection&variables=<variables>

A snippet of the relevant JSON:

{
  "data": {
    "homeSections": {
      "__typename": "HomeSectionCollection",
      "sections": [
        {
          "__typename": "HomeSection",
          "data": {
            "__typename": "HomeGenericSectionData",
            "subtitle": {
              "text": ""
            },
            "title": {
              "originalLabel": {
                "textAttributes": {
                  "textFormatArguments": [
                    {
                      "uri": null
                    }
                  ]
                }
              },
              "text": "Made For ossyrial"
            }
          },
          "sectionItems": {
            "items": [
            {...},
              {
                "data": null,
                "content": {
                  "__typename": "PlaylistResponseWrapper",
                  "data": {
                    "__typename": "NotFound"
                  }
                },
                "uri": "spotify:playlist:37i9dQZF1EYkqdzj48dyYq"
              },
              {...},
            ],
            "pagingInfo": {
              "nextOffset": null
            },
            "totalCount": 9
          },
          "uri": "spotify:section:0JQ5DAUnp4wcj0bCb3wh3S"
        }
      ]
    }
  },
  "extensions": {}
}

If I visit the playlist with that uri via the webinterface (/playlist/37i9dQZF1EYkqdzj48dyYq), I get the following error popup:
image.

Originally created by @RensOliemans on GitHub (Sep 26, 2024). Original GitHub issue: https://github.com/jpochyla/psst/issues/534 **Describe the bug** Psst shows the following error instead of the "Made for you" section on the homepage Error: Failed to read JSON: unknown variant `NotFound`, expected one of `Podcast`, `Playlist`, `Artist`, `Album` at line 1 column 10791 **To Reproduce** Open `psst-gui` **Expected behavior** I expect to see a made for you section. **Screenshots** ![Screenshot of psst-gui homepage.](https://github.com/user-attachments/assets/e90d5283-458c-474a-918e-514bafe695a6) **Environment** - OS: 6.10.10-arch1-1 - Version: 4dfa43d-modified (installed using AUR) **Additional context** The problem seems to be that `NotFound` is one of the types in the JSON response. It's a response of the following request: `GET https://api-partner.spotify.com/pathfinder/v1/query?operationName=homeSection&variables=<variables>` A snippet of the relevant JSON: ```json { "data": { "homeSections": { "__typename": "HomeSectionCollection", "sections": [ { "__typename": "HomeSection", "data": { "__typename": "HomeGenericSectionData", "subtitle": { "text": "" }, "title": { "originalLabel": { "textAttributes": { "textFormatArguments": [ { "uri": null } ] } }, "text": "Made For ossyrial" } }, "sectionItems": { "items": [ {...}, { "data": null, "content": { "__typename": "PlaylistResponseWrapper", "data": { "__typename": "NotFound" } }, "uri": "spotify:playlist:37i9dQZF1EYkqdzj48dyYq" }, {...}, ], "pagingInfo": { "nextOffset": null }, "totalCount": 9 }, "uri": "spotify:section:0JQ5DAUnp4wcj0bCb3wh3S" } ] } }, "extensions": {} } ``` If I visit the playlist with that uri via the webinterface (`/playlist/37i9dQZF1EYkqdzj48dyYq`), I get the following error popup: ![image](https://github.com/user-attachments/assets/56948137-3eff-4150-b6a6-6b60858feb82).
kerem 2026-02-28 14:32:09 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@RensOliemans commented on GitHub (Sep 26, 2024):

My bad, I was using the version installed by AUR. I saw that the previous commit actually fixed this, and when building from master, it is fixed as well! Thanks!

<!-- gh-comment-id:2376300177 --> @RensOliemans commented on GitHub (Sep 26, 2024): My bad, I was using the version installed by AUR. I saw that the previous commit actually fixed this, and when building from master, it is fixed as well! Thanks!
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#324
No description provided.