Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 for certain track in LastFMAPI #508

Open
pr8x opened this issue Nov 5, 2023 · 0 comments
Open

404 for certain track in LastFMAPI #508

pr8x opened this issue Nov 5, 2023 · 0 comments
Labels

Comments

@pr8x
Copy link

pr8x commented Nov 5, 2023

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#

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant