Hello, I’m getting a “json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)” when I run Python requests sample code locally. Could you please help?
Hello, given this error message, it seems that you’re trying to parse the HTTP response as JSON.
The response is returned as “image/png” instead (raw bytes of the PNG image file), so there’s no JSON deserialization step required.
Hope this helps, let us know if you have any further questions.
Junte-se à discussão - adicione o comentário abaixo:
Hello,
given this error message, it seems that you’re trying to parse the HTTP response as JSON.
The response is returned as “image/png” instead (raw bytes of the PNG image file), so there’s no JSON deserialization step required.
Hope this helps, let us know if you have any further questions.