Dezgo

BEZAHLT
Durch dezgo | Aktualisiert un mese fa | Artificial Intelligence/Machine Learning
Popularität

9.6 / 10

Latenz

7,542ms

Service Level

99%

Health Check

N/A

Zurück zu allen Diskussionen

JSON decode Error

Rapid account: Bahadirozkan
bahadirozkan
6 mesi fa

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 mesi fa

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.

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen