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.
아래에 의견을 추가하고 토론에 참여하세요.
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.