Skip to main content

Command Palette

Search for a command to run...

A quick tip: Fix for ProductNotSupportedError: The client noticed that the server is not a supported distribution of Elasticsearch

Users from Elasticsearch Node.js client are getting this error message

Published
1 min read

In January 2021, Elastic, which owns Elasticsearch, changed its license to SSPL (Server Side Public License) due to a conflict with Cloud Services (mainly AWS).

Because of that, a lot of developers are facing the error message:

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

If you use the official Node.js client for Elasticsearch, elasticsearch-js, I recommend you downgrade the module version to version 7.12.0.

Example in a package.json file:

"@elastic/elasticsearch": "~7.12.0"

Best, Luiz Celso