The client noticed that the server is not a supported distribution of Elasticsearch or an unknown product

Hi Team,

I have a .NET project that was previously using the following Elasticsearch setup:

  • Version: 7.12.0
  • Lucene Version: 8.8.0
  • Minimum Wire Compatibility Version: 6.8.0
  • Minimum Index Compatibility Version: 6.0.0-beta1

Recently, I upgraded the project from .NET Framework to .NET Core.
It uses Elastic.Clients.Elasticsearch Version 8.17.3

Now, when I try to create a new index using the same Elasticsearch account, I encounter this error:

The client noticed that the server is not a supported distribution of Elasticsearch or an unknown product.

However, after logging into Elasticsearch, I noticed that the index does get created, but it doesn't work due to compatibility issues.

My question:

Would upgrading the old Elasticsearch instance solve this issue without changing the code?

Any help is appreciated.

Thanks in advance!

Hey @Arun_VR,

Welcome to the community!

Starting with version 8.x, the .NET client performs a check for a specific HTTP header that the previous versions don't provide which can trigger the error you're seeing. Upgrading your Elasticsearch cluster should fix this without having to change any of your current implementation. If you're using a non-Elastic fork, the client will still reject it even if you upgrade.

Check out the Upgrade Assistant to make sure everything goes smoothly and read through the Elasticsearch .NET client readme to see information about backwards and forward compatibility as well as any potential breaking changes.

Hope this helps, let us know how it goes!