Es/search] Missing [X-Elastic-Product] header

I'm using Java API Client 8.5.3 against elasticsearch 7.12.0
I'm gettinf this error when doing a search:

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.

Is it because I can not use Java API Client with elasticsearch 7.12.0 ?

Version 8 clients are not compatible with Elasticsearch 7.x, so I would recommend you upgrade. The version you are using is very, very old and has been EOL a long time.

1 Like

You asked the same question at Move from High Level REST client to Java API Client. Let's keep the discussion there :wink:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.