Node and elasticSearch client - The client noticed that the server is not a supported distribution of Elasticsearch

Viewed 18022

I'm using @elastic/elasticsearch version ^7.5.0 and Node 14. Everything worked fine, until I ran yarn upgrade which made various changes in my yarn.lock file and since then I'm getting the following error:

The client noticed that the server is not a supported distribution of Elasticsearch

I tried upgrading @elastic/elasticsearch to latest version ^7.14.0, but this did not resolve the issue.

Nothing changed in AWS configuration either, what can be the cause for this error?

Please advise.

2 Answers

Basically, all Elastic clients are going to be updated to not work with anything else than official Elastic versions: https://www.theregister.com/2021/08/09/elasticsearch_python_client_change/

That somehow makes sense since AWS ES (soon Opensearch) and Elasticsearch (by Elastic) are going to be completely different products, so it would make no sense to have one client to rule them all.

When taking the decision to fork the underlying engine (i.e. the elasticsearch project), one also has to fork the related clients since those clients are mainly working through APIs that will diverge anyway.

Related