Dezgo

BETAALD
Door dezgo | Bijgewerkt a month ago | Artificial Intelligence/Machine Learning
Populariteit

9.6 / 10

Latency

7,438ms

Serviceniveau

100%

Health Check

N/A

Terug naar alle discussies

JSON decode Error

Rapid account: Bahadirozkan
bahadirozkan
6 months ago

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 months ago

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

Log in / Schrij u in om nieuwe opmerkingen te plaatsen