elasticsearch.UnsupportedProductError: The client noticed that the server is not Elasticsearch and we do not support this unknown product

Here I'm trying to create a full sync between Django's database and Elastic Search. While running the command "python manage.py search_index --create -f", I'm getting the error:

ERROR:

Traceback (most recent call last):
File "C:\Users\arshdeep.singh.1\Projects\elastic-search\el_search\manage.py", line 22, in
main()
File "C:\Users\arshdeep.singh.1\Projects\elastic-search\el_search\manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "C:\Users\arshdeep.singh.1\Projects\elastic-search\env\Lib\site-packages\django\core\management_init_.py", line 442, in execute_from_command_line
utility.execute()
File "C:\Users\arshdeep.singh.1\Projects\elastic-search\env\Lib\site-packages\django\core\management_init_.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\arshdeep.singh.1\Projects\elastic-search\env\Lib\site-packages\django\core\management\base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\arshdeep.singh.1\Projects\elastic-search\env\Lib\site-packages\django\core\management\base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\arshdeep.singh.1\Projects\elastic-search\env\Lib\site-packages\django_elasticsearch_dsl\management\commands\search_index.py", line 301, in handle
for index in self.es_conn.indices.get_alias().values():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\arshdeep.singh.1\Projects\elastic-search\env\Lib\site-packages\elasticsearch_sync\client\utils.py", line 414, in wrapped
return api(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\arshdeep.singh.1\Projects\elastic-search\env\Lib\site-packages\elasticsearch_sync\client\indices.py", line 1942, in get_alias
return self.perform_request( # type: ignore[return-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\arshdeep.singh.1\Projects\elastic-search\env\Lib\site-packages\elasticsearch_sync\client_base.py", line 389, in perform_request
return self._client.perform_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\arshdeep.singh.1\Projects\elastic-search\env\Lib\site-packages\elasticsearch_sync\client_base.py", line 331, in perform_request
raise UnsupportedProductError(
elasticsearch.UnsupportedProductError: The client noticed that the server is not Elasticsearch and we do not support this unknown product

Which version of Elasticsearch are you using?

Here the details are:

Name: elasticsearch
Version: 8.10.0
Summary: Python client for Elasticsearch
Home-page: GitHub - elastic/elasticsearch-py: Official Python client for Elasticsearch
Author: Elastic Client Library Maintainers
Author-email: client-libs@elastic.co
License: Apache-2.0
Location: C:\Users\arshdeep.singh.1\Projects\elastic-search\env\Lib\site-packages
Requires: elastic-transport
Required-by: django-elasticsearch-dsl-drf, elasticsearch-dsl

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