# Elasticsearch nlpcn sql client getting eroor

**URL:** <https://discuss.elastic.co/t/elasticsearch-nlpcn-sql-client-getting-eroor/291299>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [December 9, 2021, 7:56am UTC](https://discuss.elastic.co/t/elasticsearch-nlpcn-sql-client-getting-eroor/291299 "2021-12-09T07:56:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SRIGURU\_VEL](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sriguru_vel/32/88656_2.png) [@SRIGURU\_VEL](https://discuss.elastic.co/u/SRIGURU_VEL)\
**Post date:** [December 9, 2021, 7:56am UTC](https://discuss.elastic.co/t/elasticsearch-nlpcn-sql-client-getting-eroor/291299/1 "2021-12-09T07:56:09Z")

</div>

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

 ![Screenshot from 2021-12-09 13-18-49](https://us1.discourse-cdn.com/elastic/original/3X/8/f/8f2ba866745a1a895d1fc1db8034c680a57bc5ab.png)

Thanks ,  
Sriguruvel.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 6, 2022, 7:56am UTC](https://discuss.elastic.co/t/elasticsearch-nlpcn-sql-client-getting-eroor/291299/2 "2022-01-06T07:56:16Z")

</div>

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