Recipe - Food - Nutrition

फ्रीमियम
Verified
द्वारा David | अपडेट किया गया 21 days ago | Food
लोकप्रियता

9.9 / 10

लेटेंसी

517ms

सेवा का स्तर

100%

Health Check

N/A

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

Receiving Image data in Content Type : "text/html"

Rapid account: LOHAN
LOHAN
hace 8 años

I’m trying to get request for the images from this api for my iOS Application.

Retrieving the images from your API initially worked well.

Now I’m not able to retrieve these images.

This is the error I’m being shown now.
ERROR : FAILURE: Error Domain=com.alamofire.error Code=-1016 “Failed to validate response due to unacceptable content type”

P.s : I haven’t made any changes to the code relating to the get request in my app, despite that its showing me this error now which wasn’t present earlier.

Rapid account: Spoonacular
spoonacular Commented hace 8 años

Any updates on this? Please feel free to re-open if the problem persists.

Rapid account: Spoonacular
spoonacular Commented hace 8 años

Hi lohan,

I am not sure what images you are trying to get via the API. Can you please show me your request? All images are given as links and don’t even hit the API anymore so it would be really weird if you saw the text/html content type. Please let me know.

Best,
David

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

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