Python - elasticsearch.exceptions.RequestError Python - elasticsearch.exceptions.RequestError elasticsearch elasticsearch

Python - elasticsearch.exceptions.RequestError


It seems you are using the wrong version of Elasticsearch DSL.

What you need to do is the following:

  • Check your elasticsearch version curl -XGET 'localhost:9200'
  • You should then match your elasticsearch version with the compatable version of Elasticsearch DSL. For example, if your Elasticsearch version is 1.x do the following:

    -pip uninstall elasticsearch-dsl

    -pip install "elasticsearch-dsl<2.0.0"