Skip to content

Invalid response format when using sendRequest on android #113

@idanlo

Description

@idanlo

i'm trying to reach this endpoint https://developer.spotify.com/documentation/web-api/reference/follow/check-user-following-playlist/, my code looks like this:

Spotify.getMe().then(res => {
    Spotify.sendRequest(`v1/playlists/${playlistId}/followers/contains`, "GET", { ids: res.id }, false)
        .then(isFollowing => {
            console.log(isFollowing)
    })
})

but I get the following error:

Possible Unhandled Promise Rejection:
Error: Invalid response format

i tried to do this request with the same data on their web console and it worked.

I only have an android device so I don't know what happens on IOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions