# Index creation throws notFound error

**URL:** <https://discuss.elastic.co/t/index-creation-throws-notfound-error/139650>\
**Category:** Elasticsearch\
**Created:** [July 11, 2018, 11:58pm UTC](https://discuss.elastic.co/t/index-creation-throws-notfound-error/139650 "2018-07-11T23:58:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pungent](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@pungent](https://discuss.elastic.co/u/pungent)\
**Post date:** [July 11, 2018, 11:58pm UTC](https://discuss.elastic.co/t/index-creation-throws-notfound-error/139650/1 "2018-07-11T23:58:11Z")

</div>

I am using ES 6.2 on ElasticCloud with python ES package and trying to create an index, but keeps getting weird not Found error

```
 es_connection.indices.exists(index="test_index")
>> False

try:
  result = es_connection.indices.create(index="test_index")
except Exception as e:
  print(e)

>>NotFoundError(404, 'Not Found', {'statusCode': 404, 'error': 'Not Found'})   

```

I don't understand what notFound it is throwing error about? Any idea how to solve this issue?

---

<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:** [August 9, 2018, 12:13am UTC](https://discuss.elastic.co/t/index-creation-throws-notfound-error/139650/2 "2018-08-09T00:13:30Z")

</div>

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