spotify-player icon indicating copy to clipboard operation
spotify-player copied to clipboard

Artist page/widget not loading

Open gansheer opened this issue 1 year ago • 3 comments

Describe the bug When trying to access any artist, the view stays blocked on "loading..."

To Reproduce Select an artist.

Expected behavior To display the details of the artist :smile: .

Log and backtrace

...
2024-01-05T16:19:24.483948Z ERROR client_request{request=GetContext(Artist(ArtistId("1dfeR4HaWDbWqFHLkxsg1d")))}: spotify_player::client::handlers: Failed to handle client request: json parse error: invalid type: floating point `49022220`, expected u32 at line 1 column 129: invalid type: floating point `49022220`, expected u32 at line 1 column 129
2024-01-05T16:19:25.429942Z  INFO client_request{request=GetContext(Artist(ArtistId("1dfeR4HaWDbWqFHLkxsg1d")))}: spotify_player::client: Get artist context: spotify:artist:1dfeR4HaWDbWqFHLkxsg1d
2024-01-05T16:19:25.481751Z ERROR client_request{request=GetContext(Artist(ArtistId("1dfeR4HaWDbWqFHLkxsg1d")))}: spotify_player::client::handlers: Failed to handle client request: json parse error: invalid type: floating point `49022220`, expected u32 at line 1 column 129: invalid type: floating point `49022220`, expected u32 at line 1 column 129
...

Screenshots Capture d’écran du 2024-01-05 17-19-02

Environment

  • OS: Linux
  • Application version: 0.16.3 (github release spotify_player-x86_64-unknown-linux-gnu-0.16.3.tar.gz)
  • Application features: N/A

Additional context Started suddenly, I tried clearing the cache to no avail. The command line give me the same result:

$ spotify-player get item artist --id 1dfeR4HaWDbWqFHLkxsg1d
Bad request: json parse error: invalid type: floating point `49022220`, expected u32 at line 1 column 129: invalid type: floating point `49022220`, expected u32 at line 1 column 129

gansheer avatar Jan 05 '24 16:01 gansheer

Thanks for reporting.

Look like the error happens because of a recent change from Spotify that changes the type of a field from integer to float. I submitted a bug issue to the third-party library that handles Spotify APIs: https://github.com/ramsayleung/rspotify/issues/452

aome510 avatar Jan 06 '24 11:01 aome510

+1 Another Spotify player I use is having the same issue 😅 Bit of context, if it helps:

  • https://github.com/KRTirtho/spotube/issues/1018
  • https://github.com/rinukkusu/spotify-dart/issues/193

SkepticMystic avatar Jan 10 '24 09:01 SkepticMystic

Of note: a workaround has been merged to rspotify: https://github.com/ramsayleung/rspotify/pull/457

LucasFA avatar Feb 03 '24 13:02 LucasFA

Encountered another error in https://github.com/aome510/spotify-player/issues/383#issuecomment-1972452044 but with get-several-tracks API. As it may take rspotify quite a while to implement/release patches, I'll implement a workaround from spotify_player side.

aome510 avatar Mar 02 '24 23:03 aome510

Should be fixed by https://github.com/aome510/spotify-player/pull/386. Can anyone try running from the latest master to see if the issue is fixed now?

aome510 avatar Mar 03 '24 17:03 aome510

@aome510 so far no issues noticed. Thanks!

Nexion avatar Mar 03 '24 17:03 Nexion