Dezgo

PAGATO
Da dezgo | Aggiornamento 2๋‹ฌ ์ „ | Artificial Intelligence/Machine Learning
Popolaritร 

9.5 / 10

Latenza

6,733ms

Livello di servizio

100%

Health Check

N/A

Torna a tutte le discussioni

JSON decode Error

Rapid account: Bahadirozkan
bahadirozkan
7๋‹ฌ ์ „

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 7๋‹ฌ ์ „

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.

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti