Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
enimakherratia opened this issue Sep 23, 2021 · 4 comments

Comments

@enimakherratia
Copy link

enimakherratia commented Sep 23, 2021

Maintainers' Note: This question has been posted elsewhere:

I'm using @elastic/elasticsearch version ^7.5.0 and Node 10.24.1. Everything worked fine, until I redeploy my backend and since then I'm getting the following error:

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

@achrinza
Copy link
Member

achrinza commented Sep 23, 2021

This was a silent breaking change from Elastic's end. AWS has since created OpenSearch client forks.

See:

A trivial fix would be to pin the v7 dependency version in this package to a known working version (see: https://opensearch.org/docs/clients/index/#opensearch-client-compatibility).

This may not be possible, as it'll break semver rules. Will see if we can intrrdouce the OpenSearch v7 client as another option for the "version" connector setting.

However, we're currently in the midst of migrating CI infrastructures and this repo doesn't have active CI pipelines yet, so this will be blocked until the CI pipelines are migrated.

@enimakherratia
Copy link
Author

any update?

@achrinza
Copy link
Member

It's in my backlog, but no new updates to give. Will try to timebox by the end of the week if the CI migration goes smoothly. No promises at the moment though.

If its urgent, feel free to fork and pin the Elastic Search client v7 version as per-#140 (comment).

@achrinza
Copy link
Member

achrinza commented May 8, 2022

Unfortunately I have not had the time to work on this repo.

For those looking for an immediate solution:

NPM v8

NPM CLI v8.3.0 onwards support overrides.

In package.json, add the following:

"overrides": {
  "loopback-connector-elastic-search": {
    "es7": "@elastic/elasticsearch@7.13.0"
}

I've opened #146 to track bringing this repo up to speed.

@achrinza achrinza closed this as completed May 8, 2022
@achrinza achrinza pinned this issue May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants