# ES errors - illegal\_argument\_exception

**URL:** <https://discuss.elastic.co/t/es-errors-illegal-argument-exception/226260>\
**Category:** Elasticsearch\
**Created:** [April 2, 2020, 5:32pm UTC](https://discuss.elastic.co/t/es-errors-illegal-argument-exception/226260 "2020-04-02T17:32:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Bertolotti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juan_bertolotti/32/65580_2.png) [@Juan\_Bertolotti](https://discuss.elastic.co/u/Juan_Bertolotti)\
**Post date:** [April 2, 2020, 5:32pm UTC](https://discuss.elastic.co/t/es-errors-illegal-argument-exception/226260/1 "2020-04-02T17:32:23Z")

</div>

Im getting the following error

```auto
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"No endpoint or operation is available at [search_shards]"}],"type":"illegal_argument_exception","reason":"No endpoint or operation is available at [search_shards]"},"status":400

```

Cluster is green.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 2, 2020, 7:10pm UTC](https://discuss.elastic.co/t/es-errors-illegal-argument-exception/226260/2 "2020-04-02T19:10:00Z")

</div>

Welcome!

It would help if we know what you are actually doing.

---

<div class="post-metadata">

**Author:** ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)\
**Post date:** [April 3, 2020, 6:46am UTC](https://discuss.elastic.co/t/es-errors-illegal-argument-exception/226260/3 "2020-04-03T06:46:07Z")

</div>

Are you trying to use the [search shards API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-shards.html)? If so, it should be `_search_shards` (note the leading underscore) instead of `search_shards`.

---

<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:** [May 1, 2020, 6:57am UTC](https://discuss.elastic.co/t/es-errors-illegal-argument-exception/226260/4 "2020-05-01T06:57:48Z")

</div>

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