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.