Hello!
I'm trying to use your API, but for one specific image I always get an "Internal error".
It seems like that the image I'm sending is malformed. It displays OK with everything I tried. When I simply try it from the demo page the browser displays it but I get the same error.
The image is encoded by opencv 3.4.0-dev, jpeg 95%. If I then open the image with any editor and re-save it then it works fine (same request body, just the image data is replaced). Not all the images return an internal error.
Am I missing something that is necessary encode-vise?
I can send the image via a mail, would not like to upload it to this message board
.
I receive the following response:
{
"status": {
"code": 10020,
"description": "Failure"
},
"outputs": [
{
"id": "3405b9a898804c1b8bcfa506a61e011a",
"status": {
"code": 99009,
"description": "Internal error",
"details": "Sorry an internal error occurred. Please try again later."
},
"created_at": "2018-07-25T15:18:03.872613763Z",
"model": {
"id": "e9576d86d2004ed1a38ba0cf39ecb4b1",
"name": "nsfw-v1.0",
"created_at": "2016-09-17T22:18:59.955626Z",
"app_id": "main",
"output_info": {
"message": "Show output_info with: GET /models/{model_id}/output_info",
"type": "concept",
"type_ext": "concept"
},
"model_version": {
"id": "aa47919c9a8d4d94bfa283121281bcc4",
"created_at": "2018-01-23T19:25:09.618692Z",
"status": {
"code": 21100,
"description": "Model trained successfully"
}
},
"display_name": "NSFW"
},
"input": {
"id": "a29ffc96ce424e458ad1ef29f93e7921",
"data": {
"image": {
"url": "https://s3.amazonaws.com/samples.clarifai.com/placeholder.gif",
"base64": "dHJ1ZQ=="
}
}
},
"data": {}
}
]
}
Thanks,
Viktor