‘The client noticed that the server is not a supported distribution of Elasticsearch‘ error and solution
Keith
Posted on May 16, 2022
The django project is running very well, but suddenly the interface query error.
{
“code”: 400102,
“message”: “请求错误”,
“data”: {
“detail”: “The client noticed that the server is not a supported distribution of Elasticsearch”
}
}
Search Baidu there is no result, just search Google Query to the news link
Links:
https://www.theregister.com/2021/08/09/elasticsearch_python_client_change/
The main meaning is that in order to fight 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 dependency version of the es client of the python project or adopt the open source version of opensearch newly pulled by aws. However, opensearch can not be used in the production environment
https://aws.amazon.com/cn/elasticsearch-service/the-elk-stack/what-is-opensearch/
So modify the es version of the specified project in pipfile.rch can not be used in the production environment
Restart the build, the problem is solved!
Posted on May 16, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
May 16, 2022