Skip to content

Different user's playlist returned from SDK and from developer documentation. #139

@Fisiu

Description

@Fisiu

The function that retrieves the current user's playlists is fairly simple:

getUserPlaylists(
  limit: MaxInt<20> = 20,
  offset = 0,
): Observable<Page<SimplifiedPlaylist>> {
  return from(this.sdk!.currentUser.playlists.playlists(limit, offset)).pipe(
    catchError((error) => this.handleError('getUserPlaylists', error)),
  );
}

It always returns fewer playlists than there are. I know it returns a maximum of 20, but there is a total property on the Page that shows the total number of playlists for the user. But this total never shows the right number for me. However, if I use documentation, testing this endpoint shows the correct number of my playlists. The only difference I can see is in the authentication methods. developer.spotify.com logs me in with user/pass, while my web client logs me in with OAuth / with PKCE.

Why am I getting invalid data?

Image

vs.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions