Skip to content Skip to sidebar Skip to footer

Python - Spotify Api Returning Error 400 "malformed Json"

Heyo. I'm trying to make a small application in my spare time that uses the Spotify API . I have managed to get my program to use oAuth 2 to let a user authorize my app to manipula

Solution 1:

If your payload is a dict use json kwargs in requests lib. data works for string payload. Here you go:

r = requests.put(url, headers=headers, json=payload)

Post a Comment for "Python - Spotify Api Returning Error 400 "malformed Json""