Closed kvandenbogaerde closed 9 years ago
Hi,
When I run this script underPython34, I get an error on userinfo = json.loads(response.content) : the JSON object must be str, not 'bytes'.
How can this be solved ?
Best regards, Kristof
I have fixed this - you need to add ".decode('utf-8')" in lines 46 and 78:
fullData = json.loads(response.content.decode('utf-8'))[0]
Sorry for the late reaction. I fixed the issue, thank you @ukdilmah!
Hi,
When I run this script underPython34, I get an error on userinfo = json.loads(response.content) : the JSON object must be str, not 'bytes'.
How can this be solved ?
Best regards, Kristof