# Elastic Search and Python pushing error

**URL:** <https://discuss.elastic.co/t/elastic-search-and-python-pushing-error/316105>\
**Category:** Elasticsearch\
**Created:** [October 7, 2022, 6:43pm UTC](https://discuss.elastic.co/t/elastic-search-and-python-pushing-error/316105 "2022-10-07T18:43:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shashank02](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashank02/32/99866_2.png) [@Shashank02](https://discuss.elastic.co/u/Shashank02)\
**Post date:** [October 7, 2022, 6:43pm UTC](https://discuss.elastic.co/t/elastic-search-and-python-pushing-error/316105/1 "2022-10-07T18:43:37Z")

</div>

elasticsearch.BadRequestError: BadRequestError(400, 'illegal\_argument\_exception', 'Action/metadata line [1] contains an unknown parameter [\_type]')  
How do you resolve this error? I'm trying to push the data through my python code.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 8, 2022, 9:07am UTC](https://discuss.elastic.co/t/elastic-search-and-python-pushing-error/316105/2 "2022-10-08T09:07:33Z")

</div>

Which version of Elasticsearch are oyu using? Which version of the Python client?

Document types have been deprecated so if you are using a newer version you should not specify a type.

---

<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:** [November 5, 2022, 9:08am UTC](https://discuss.elastic.co/t/elastic-search-and-python-pushing-error/316105/3 "2022-11-05T09:08:14Z")

</div>

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