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

Missing X-Elastic-Product header #54

Closed
mindscratch opened this issue Dec 8, 2021 · 4 comments
Closed

Missing X-Elastic-Product header #54

mindscratch opened this issue Dec 8, 2021 · 4 comments

Comments

@mindscratch
Copy link

Since upgrading from the 7.15.x client to the 7.16.0 client I am getting a TransportException:

co.elastic.clients.transport.TransportException: [es/search] Missing [X-Elastic-Product] header. Please check that you are connecting to an Elasticsearch instance, and that any networking filters are preserving that header.
@swallez
Copy link
Member

swallez commented Dec 9, 2021

What version of Elasticsearch are you using? The Java client requires Elasticsearch version 7.14 as a minimum.

See also our compatibility guarantees.

@mindscratch
Copy link
Author

I'm on 7.12, so did I just get lucky with the 7.15.x client working?

@swallez
Copy link
Member

swallez commented Dec 9, 2021

The 7.16 version has additional logic to be compatible with Elasticsearch 8.0 that will have a "7.0 compatible mode" to ease the transition to this new major version.

The server-side part of this migration logic was added to Elasticsearch 7.14, and this is why the new Java client requires Elasticsearch 7.14 or more. We'll update the docs with information about this absolute minimal version requirement.

@swallez swallez closed this as completed Dec 9, 2021
@mindscratch
Copy link
Author

Thanks, I'll switch to the rest high-level client while we're still on the older ES.

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