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.
Doe mee aan de discussie - voeg hieronder een opmerking toe
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.