Dezgo

PAID
By dezgo | Updated 23ๆ—ฅๅ‰ | Artificial Intelligence/Machine Learning
Popularity

9.6 / 10

Latency

7,433ms

Service Level

99%

Health Check

N/A

Back to All Discussions

JSON decode Error

Rapid account: Bahadirozkan
bahadirozkan
6ใƒถๆœˆๅ‰

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?

Rapid account: Dezgo
dezgo Commented 6ใƒถๆœˆๅ‰

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.

Join in the discussion - add comment below:

Login / Signup to post new comments