# Why doesn't DevTool get error "index\_closed\_exception" with same query syntax?

**URL:** <https://discuss.elastic.co/t/why-doesnt-devtool-get-error-index-closed-exception-with-same-query-syntax/293030>\
**Category:** Elasticsearch\
**Created:** [December 28, 2021, 9:33am UTC](https://discuss.elastic.co/t/why-doesnt-devtool-get-error-index-closed-exception-with-same-query-syntax/293030 "2021-12-28T09:33:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenhouwu](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jenhouwu](https://discuss.elastic.co/u/jenhouwu)\
**Post date:** [December 28, 2021, 9:33am UTC](https://discuss.elastic.co/t/why-doesnt-devtool-get-error-index-closed-exception-with-same-query-syntax/293030/1 "2021-12-28T09:33:33Z")

</div>

Hi,  
I try to prepare a search to query indices name as a-\*, for some reason I closed some of a-\* indices that are one month old.  
I can get data by Kibana DevTool even if I query closed index. However when I use "curl" with same syntax, I got error "index\_closed\_exception","reason":"closed". Why?

---

<div class="post-metadata">

**Author:** ![jenhouwu](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jenhouwu](https://discuss.elastic.co/u/jenhouwu)\
**Post date:** [December 30, 2021, 1:34am UTC](https://discuss.elastic.co/t/why-doesnt-devtool-get-error-index-closed-exception-with-same-query-syntax/293030/2 "2021-12-30T01:34:37Z")

</div>

Update  
In order to prevent this error，I changed query uri from [http://Elasticsearch](http://Elasticsearch):Port/a-\*/\_search to [http://ElasticsearchIP](http://ElasticsearchIP):Port/a-2021.12.26,a-2021.12.27,a-2021.12.28/\_search and got data.

---

<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 27, 2022, 1:34am UTC](https://discuss.elastic.co/t/why-doesnt-devtool-get-error-index-closed-exception-with-same-query-syntax/293030/3 "2022-01-27T01:34:48Z")

</div>

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