I have a watson instance that works fine with cURL
curl -X POST -u "apikey:skjfdk" --form "[email protected]" "https://gateway.watsonplatform.net/visual-recognition/api/v3/classify?version=2018-03-19&&classifier_ids=myclassifier"
{
"images": [
{
"classifiers": [
{
"classifier_id": "myclassifier",
"name": "myclassifier",
"classes": [
{
"class": "pot",
"score": 0.905
}
]
}
],
"image": "newpot.jpg"
}
],
"images_processed": 1,
"custom_classes": 4
}
But when I access it via REST CLIENT or simple Javascript ajax form upload it gives this error. What can be the possible reason? I am sure I am not adding any additional headers in the request as the error claims. Attached screenshot of my rest client
{
"images": [
{
"image": "newpot.jpg",
"error": {
"code": 400,
"description": "Invalid Request: vr.Classifier/classify: INVALID_ARGUMENT: Accept-Language header must be a supported 2 letter ISO 639-1 language code or 5 letter ITEF BPC 47 language code. Received 'en-u-rg-uszzzz'"
}
}
],
"images_processed": 1
}
