Closed lexand closed 7 years ago
Thanks for the report.
There is a REST endpoint problem. I will look into it.
I think version 5.3.0.1 will fix the issue.
Thanks
all works fine
The same is happening with version 5.3.2.0
The command
curl -XPOST http://127.0.0.1:9200/_langdetect -d '{"text":"this is a short text"}'
works with 5.3.2.0
Oh, I'm sorry. Thanks, it works that way.
The following doesn't work:
curl -XPOST 'localhost:9200/_langdetect?pretty' -d 'This is a test'
which is on in Readme file https://github.com/jprante/elasticsearch-langdetect#language-detection-rest-api-example
My config ES:
Kibana 5.3 and plugins
my tryes
{ "error": { "root_cause": [ { "type": "json_generation_exception", "reason": "Can not write a field name, expecting a value" } ], "type": "json_generation_exception", "reason": "Can not write a field name, expecting a value" }, "status": 500 }
$ curl -XPOST http://127.0.0.1:9200/_langdetect -d '{"text":"some text"}' {"error":{"root_cause":[{"type":"json_generation_exception","reason":"Can not write a field name, expecting a value"}],"type":"json_generation_exception","reason":"Can not write a field name, expecting a value"},"status":500}
$ curl -XGET http://127.0.0.1:9200/_langdetect -d '{"text":"some text"}' {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"No endpoint or operation is available at [_langdetect]"}],"type":"illegal_argument_exception","reason":"No endpoint or operation is available at [_langdetect]"},"status":400}
$ curl -XGET http://127.0.0.1:9200/_langdetect -d 'some text' {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
$curl -XPOST http://127.0.0.1:9200/_langdetect -d 'some text' {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}