Peter-Schorn / SpotifyAPI

A Swift library for the Spotify web API. Supports all endpoints.
https://peter-schorn.github.io/SpotifyAPI/documentation/spotifywebapi
MIT License
265 stars 32 forks source link

SpotifyDecodingError when fetching from /me/playlists endpoint #59

Closed wiencheck closed 5 months ago

wiencheck commented 5 months ago

I'm using the newest (2.2.4) release of this library and when calling .currentUserPlaylists() method on SpotifyAPI I get an error.

More detailed error description: ` SpotifyDecodingError: The data from the Spotify web API could not be decoded into 'PagingObject<Playlist>' URL: https://api.spotify.com/v1/me/playlists http status code: 200 pretty coding path: PagingObject<Playlist>.items[49].images Underlying error: ▿ Swift.DecodingError.valueNotFound ▿ valueNotFound: (2 elements)

Peter-Schorn commented 5 months ago

Please try the latest commit on master. Close if this fixes your issue.

See also 03799102987847ab6674f275b729dd5bdd9fe5f0 and #57.

wiencheck commented 5 months ago

It did fix the issue, thank you for quick reponse!

toothbrush commented 4 months ago

Hey, just wanting to say thanks for the quick reply indeed. This solved the issue in my app too.