Dezgo

PAYANT
Par dezgo | Mise à jour vor einem Monat | Artificial Intelligence/Machine Learning
Popularité

9.6 / 10

Latence

7,542ms

Niveau de service

99%

Health Check

N/A

Retour à toutes les discussions

JSON decode Error

Rapid account: Bahadirozkan
bahadirozkan
vor 6 Monaten

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 vor 6 Monaten

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.

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires