You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing my code with 70+ playlists and in some of them when I try to get the tracks by using getTracksByPlaylistId I get a broken list (Iterable) see https://i.imgur.com/T3Tyt38.png. It seems that it starts to put some tracks but can't finish the list.
I've done some debug in the sdk code and when the code is parsing each song of the playlist in the method "Track _$TrackFromJson(Map<String, dynamic> json)" present in _models.g.dart at some point for one song of the playlist the parameter json is null.
And when I try to read the length of the Iterable returned by getTracksByPlaylistId I get:
Exception has occurred. NoSuchMethodError (NoSuchMethodError: The method '[]' was called on null. Receiver: null Tried calling: []("album"))
but the song that get a null json object has an album and it is not a podcast in the playlist.
Ps: this occurs with 4/5 playlists over the 70+
Update: the getPage method works correctly for every page and the problem seems to be in this pages.expand:
Also, for avoiding the api rate limit is there a quicker way to get all the songs of all playlist or the only way is to fetch each playlist and use getTracksByPlaylistId?
The text was updated successfully, but these errors were encountered:
I'm testing my code with 70+ playlists and in some of them when I try to get the tracks by using getTracksByPlaylistId I get a broken list (Iterable) see https://i.imgur.com/T3Tyt38.png. It seems that it starts to put some tracks but can't finish the list.
I've done some debug in the sdk code and when the code is parsing each song of the playlist in the method "Track _$TrackFromJson(Map<String, dynamic> json)" present in _models.g.dart at some point for one song of the playlist the parameter json is null.
And when I try to read the length of the Iterable returned by getTracksByPlaylistId I get:
Exception has occurred. NoSuchMethodError (NoSuchMethodError: The method '[]' was called on null. Receiver: null Tried calling: []("album"))
but the song that get a null json object has an album and it is not a podcast in the playlist.
Ps: this occurs with 4/5 playlists over the 70+
Update: the getPage method works correctly for every page and the problem seems to be in this pages.expand:
which returns a broken iterable
Also, for avoiding the api rate limit is there a quicker way to get all the songs of all playlist or the only way is to fetch each playlist and use getTracksByPlaylistId?
The text was updated successfully, but these errors were encountered: