Getting ProductNotSupportedError: The client noticed that the server is not Elasticsearch and we do not support this unknown product
08:32 30 Sep 2022

Upgraded the midwayjs service from v2 to v3 but now I am unable to connect to elasticsearch. Below is the package.json dependencies:

"@elastic/elasticsearch": "7.12.0",
"egg": "^3.3.3",
"egg-elasticsearch-ts": "^1.1.1"

Getting below error:

fetch fs status error ProductNotSupportedError: The client noticed that the server is not Elasticsearch and we do not support this unknown product. at Transport.request

meta: { body: null, statusCode: null, headers: null, meta: { context: null, request: [Object], name: 'elasticsearch-js', connection: null, attempts: 0, aborted: false } } }

node.js elasticsearch egg