Elasticsearch nlpcn sql client getting eroor

Hi Experts,

I am Using ES 7.9.3 with NLPCN Sql client. SO I am getting Error when i try to GET index.

{"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[1:1] [sql/query] failed to parse object"}],"type":"x_content_parse_exception","reason":"[1:1] [sql/query] failed to parse object","caused_by":{"type":"json_parse_exception","reason":"Unrecognized token 'SELECT': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: (org.Elasticsearch.common.bytes.AbstractBytesReference$MarkSupportingStreamInputWrapper); line: 1, column: 8]"}},"status":400}

My Elasticsearch configuratin For this

Elasticsearch.YML

http.cors.enabled: true
http.cors.allow-origin: '*'
client.transport.sniff: true
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: "X-Requested-With,X-Auth-Token,Content-Type,Content-Length, Authorization, sg_tenant"
http.cors.allow-credentials: true

ADDING MY ERROR PAGE IMAGE

Thanks ,
Sriguruvel.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.