[GH-ISSUE #617] Unable to search or lookup artist songs #1297

Closed
opened 2026-03-14 14:18:23 +03:00 by kerem · 11 comments
Owner

Originally created by @Saevath on GitHub (Nov 27, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/617

Describe the bug
Whenever I try to search a song or look up an artist's playlist the player gets stuck, from the logs I can see that the fetch request seems to be failing.

To Reproduce
Install spotify-player
Authenticate
Try to search a song title or artist

Expected behaviour
View the searched songs

Log and backtrace
2024-11-27T21:43:17.059424Z INFO client_request{request=GetContext(Artist(ArtistId("2d0hyoQ5ynDBnkvAbJKORj")))}: spotify_player::client: Get artist context: spotify🧑‍🎨2d0hyoQ5ynDBnkvAbJKORj
2024-11-27T21:43:17.326311Z ERROR client_request{request=GetContext(Artist(ArtistId("2d0hyoQ5ynDBnkvAbJKORj")))}: spotify_player::client::handlers: Failed to handle client request: get related artists: http error: status code 404 Not Found

Screenshots
N/A

Environment

  • OS: Arch Linux
  • Application version: 0.20.1
  • Application features: pulseaudio-backend,streaming,image,notify

Additional context
N/A

Originally created by @Saevath on GitHub (Nov 27, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/617 **Describe the bug** Whenever I try to search a song or look up an artist's playlist the player gets stuck, from the logs I can see that the fetch request seems to be failing. **To Reproduce** Install spotify-player Authenticate Try to search a song title or artist **Expected behaviour** View the searched songs **Log and backtrace** 2024-11-27T21:43:17.059424Z INFO client_request{request=GetContext(Artist(ArtistId("2d0hyoQ5ynDBnkvAbJKORj")))}: spotify_player::client: Get artist context: spotify:artist:2d0hyoQ5ynDBnkvAbJKORj 2024-11-27T21:43:17.326311Z ERROR client_request{request=GetContext(Artist(ArtistId("2d0hyoQ5ynDBnkvAbJKORj")))}: spotify_player::client::handlers: Failed to handle client request: get related artists: http error: status code 404 Not Found **Screenshots** N/A **Environment** - OS: Arch Linux - Application version: 0.20.1 - Application features: pulseaudio-backend,streaming,image,notify **Additional context** N/A
kerem 2026-03-14 14:18:23 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Saevath commented on GitHub (Nov 27, 2024):

Something similar also happens when I start the application, nothing shows in the Playback and from the log I can see this:

2024-11-27T21:53:10.385492Z ERROR librespot_connect::spirc: ContextError: Error { kind: NotFound, error: StatusCode(404) }
2024-11-27T21:53:10.385518Z INFO librespot_connect::spirc: No more tracks left in queue
2024-11-27T21:53:10.453908Z ERROR librespot_connect::spirc: ContextError: Error { kind: NotFound, error: StatusCode(404) }

<!-- gh-comment-id:2504855843 --> @Saevath commented on GitHub (Nov 27, 2024): Something similar also happens when I start the application, nothing shows in the Playback and from the log I can see this: 2024-11-27T21:53:10.385492Z ERROR librespot_connect::spirc: ContextError: Error { kind: NotFound, error: StatusCode(404) } 2024-11-27T21:53:10.385518Z INFO librespot_connect::spirc: No more tracks left in queue 2024-11-27T21:53:10.453908Z ERROR librespot_connect::spirc: ContextError: Error { kind: NotFound, error: StatusCode(404) }
Author
Owner

@yawnbo commented on GitHub (Nov 27, 2024):

Same issues, this happens when searching

2024-11-27T23:31:48.533617Z ERROR client_request{request=Search("blah blah")}: spotify_player::client::handlers: Failed to handle client request: json parse error: invalid type: null, expected struct SimplifiedPlaylist at line 1 column 8664: invalid type: null, expected struct SimplifiedPlaylist at line 1 column 8664

User playlists still work and appear but new playlists that were made recently aren't appended due to

2024-11-27T23:31:35.293265Z ERROR client_request{request=GetUserPlaylists}: spotify_player::client::handlers: Failed to handle client request: invalid type: null, expected struct SimplifiedPlaylist at line 1 column 4901
<!-- gh-comment-id:2504983226 --> @yawnbo commented on GitHub (Nov 27, 2024): Same issues, this happens when searching ``` 2024-11-27T23:31:48.533617Z ERROR client_request{request=Search("blah blah")}: spotify_player::client::handlers: Failed to handle client request: json parse error: invalid type: null, expected struct SimplifiedPlaylist at line 1 column 8664: invalid type: null, expected struct SimplifiedPlaylist at line 1 column 8664 ``` User playlists still work and appear but new playlists that were made recently aren't appended due to ``` 2024-11-27T23:31:35.293265Z ERROR client_request{request=GetUserPlaylists}: spotify_player::client::handlers: Failed to handle client request: invalid type: null, expected struct SimplifiedPlaylist at line 1 column 4901 ```
Author
Owner

@j-danner commented on GitHub (Nov 28, 2024):

I have the exact same issue...

Might this be related to recent the changes in the web API?

https://developer.spotify.com/blog/2024-11-27-changes-to-the-web-api

<!-- gh-comment-id:2506743646 --> @j-danner commented on GitHub (Nov 28, 2024): I have the exact same issue... Might this be related to recent the changes in the web API? https://developer.spotify.com/blog/2024-11-27-changes-to-the-web-api
Author
Owner

@ociton commented on GitHub (Nov 28, 2024):

I also gave the exact same issue

Arch, spotify-player-pipewire from aur

<!-- gh-comment-id:2506787148 --> @ociton commented on GitHub (Nov 28, 2024): I also gave the exact same issue Arch, spotify-player-pipewire from aur
Author
Owner

@aome510 commented on GitHub (Nov 28, 2024):

Can confirm that I also got many 404 errors. Might be related to the new Spotify API changes. Spotify always breaks their APIs 🤦 . I'll take a look over the weekend to see how to fix/mitigate this issue.

<!-- gh-comment-id:2506812509 --> @aome510 commented on GitHub (Nov 28, 2024): Can confirm that I also got many 404 errors. Might be related to the new Spotify API changes. Spotify always breaks their APIs 🤦 . I'll take a look over the weekend to see how to fix/mitigate this issue.
Author
Owner

@bartlibert commented on GitHub (Nov 29, 2024):

For me, it works fine if I use the default client_id.
If I use my own one, it's broken.
Seems consistent with the changes introduced in the api, as my own app is still "in development" and as such is considered a "new" app that has no access to the relevant web API access points.
So I have to choose now: spotify connect or searching...

<!-- gh-comment-id:2508010179 --> @bartlibert commented on GitHub (Nov 29, 2024): For me, it works fine if I use the default client_id. If I use my own one, it's broken. Seems consistent with the [changes introduced in the api](https://developer.spotify.com/blog/2024-11-27-changes-to-the-web-api), as my own app is still "in development" and as such is considered a "new" app that has no access to the relevant web API access points. So I have to choose now: spotify connect or searching...
Author
Owner

@aome510 commented on GitHub (Nov 29, 2024):

one thing I just found out is that this 404 error only happens if you use your own client_id, i.e. to set up Spotify Connect. In other words, to work-around this issue, you can unset client_id in your app.toml to use the default Spotify client_id

I feel like this can be worked around further by implementing a separate client just for Spotify Connect, which I will play around over the weekend

<!-- gh-comment-id:2508010412 --> @aome510 commented on GitHub (Nov 29, 2024): one thing I just found out is that this 404 error only happens if you use your own `client_id`, i.e. to set up [Spotify Connect](https://github.com/aome510/spotify-player?tab=readme-ov-file#spotify-connect). In other words, to work-around this issue, you can unset `client_id` in your `app.toml` to use the default Spotify `client_id` I feel like this can be worked around further by implementing a separate client just for Spotify Connect, which I will play around over the weekend
Author
Owner

@Saevath commented on GitHub (Nov 30, 2024):

I can confirm that using the default Spotify client_id has fixed the issue for me.

<!-- gh-comment-id:2508951227 --> @Saevath commented on GitHub (Nov 30, 2024): I can confirm that using the default Spotify client_id has fixed the issue for me.
Author
Owner

@aome510 commented on GitHub (Nov 30, 2024):

Should be fixed with #618. Can anyone try latest master and confirm it's the case?

<!-- gh-comment-id:2509027388 --> @aome510 commented on GitHub (Nov 30, 2024): Should be fixed with #618. Can anyone try latest `master` and confirm it's the case?
Author
Owner

@ekattsim commented on GitHub (Dec 1, 2024):

Should be fixed with #618. Can anyone try latest master and confirm it's the case?

Great work! Works perfectly on mac os after building master.

<!-- gh-comment-id:2509579735 --> @ekattsim commented on GitHub (Dec 1, 2024): > Should be fixed with #618. Can anyone try latest `master` and confirm it's the case? Great work! Works perfectly on mac os after building master.
Author
Owner

@ociton commented on GitHub (Dec 1, 2024):

when will it be merged into aur package?

<!-- gh-comment-id:2509782502 --> @ociton commented on GitHub (Dec 1, 2024): when will it be merged into aur package?
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/spotify-player#1297
No description provided.