'The client noticed that the server is not a supported distribution of Elasticsearch' error and solution

The django project is running well, but suddenly the interface query error.

Observe the error message

{
    "code": 400102,
    "message": "请求错误",
    "data": {
        "detail": "The client noticed that the server is not a supported distribution of Elasticsearch"
    }
}

Search Baidu to no avail, follow Google

Query to news link

The link is as follows:

https://www.theregister.com/2021/08/09/elasticsearch_python_client_change/

The main meaning is that in order to fight against aws, es no longer supports the apach 2.0 open source protocol in the new version

https://www.oschina.net/news/154014/aws-fork-clients-of-elasticsearch

Therefore, it is necessary to reduce the es client dependency version of the python project or adopt the open source version opensearch newly pulled by aws.

However, opensearch cannot be applied in the production environment

https://aws.amazon.com/cn/elasticsearch-service/the-elk-stack/what-is-opensearch/

 

So modify the es version of the pipfile specified project.

 

Restart the build, problem solved!

Guess you like

Origin blog.csdn.net/songkai558919/article/details/119568829