Closed pr8x closed 1 month ago
I am seeing a 404 while loading the LastFM info for certain tracks:
System.Net.WebException: 'The remote server returned an error: (404) Not Found.' Spytify.exe!EspionSpotify.API.LastFMAPI.FetchFromAPI(string url) Line 84 C# Spytify.exe!EspionSpotify.API.LastFMAPI.FallbackToSingleAlbumIfNeeded(EspionSpotify.Models.LastFMTrack trackExtra) Line 174 C# Spytify.exe!EspionSpotify.API.LastFMAPI.UpdateTrack(EspionSpotify.Models.Track track, string forceQueryTitle) Line 149 C# Spytify.exe!EspionSpotify.API.LastFMAPI.UpdateTrack(EspionSpotify.Models.Track track) Line 37 C# Spytify.exe!EspionSpotify.Spotify.SpotifyStatus.GetTrack.AnonymousMethod__5_0() Line 46 C#
System.Net.WebException: 'The remote server returned an error: (404) Not Found.'
Spytify.exe!EspionSpotify.API.LastFMAPI.FetchFromAPI(string url) Line 84 C# Spytify.exe!EspionSpotify.API.LastFMAPI.FallbackToSingleAlbumIfNeeded(EspionSpotify.Models.LastFMTrack trackExtra) Line 174 C# Spytify.exe!EspionSpotify.API.LastFMAPI.UpdateTrack(EspionSpotify.Models.Track track, string forceQueryTitle) Line 149 C# Spytify.exe!EspionSpotify.API.LastFMAPI.UpdateTrack(EspionSpotify.Models.Track track) Line 37 C# Spytify.exe!EspionSpotify.Spotify.SpotifyStatus.GetTrack.AnonymousMethod__5_0() Line 46 C#
The LastFM URL: https://ws.audioscrobbler.com/2.0/?method=album.getInfo&api_key=01a049d30c4e17c1586707acf5d0fb17&artist=Baraka&album=Final%20Fantasy
URL looks legit and opens just fine in the browser. Not sure what happens here, but we should definitely handle LastFM API errors better and deal with null return values.
null
Track used
https://open.spotify.com/track/0D7mJTKeIWzPx1xb7cijus?si=29eecaed2be54bd2
Screenshots
I am seeing a 404 while loading the LastFM info for certain tracks:
The LastFM URL: https://ws.audioscrobbler.com/2.0/?method=album.getInfo&api_key=01a049d30c4e17c1586707acf5d0fb17&artist=Baraka&album=Final%20Fantasy
URL looks legit and opens just fine in the browser. Not sure what happens here, but we should definitely handle LastFM API errors better and deal with
null
return values.Track used
https://open.spotify.com/track/0D7mJTKeIWzPx1xb7cijus?si=29eecaed2be54bd2
Screenshots