Dezgo

भुगतान किया गया
द्वारा dezgo | अपडेट किया गया 22 days ago | Artificial Intelligence/Machine Learning
लोकप्रियता

9.6 / 10

लेटेंसी

7,403ms

सेवा का स्तर

99%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

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.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें