Resolving UnsupportedProductError in Python ElasticSearch When Using AWS ElasticSearch

AWS Python
2021-10-15 20:53 (3 years ago) ytyng

If you encounter the following error:

elasticsearch.exceptions.UnsupportedProductError: The client noticed that the server is not a supported distribution of Elasticsearch

when connecting to AWS OpenSearch/Elasticsearch using the Python elasticsearch library version 7.14, you can resolve it by downgrading the library version. To do so, use the following command:

pip install "elasticsearch<7.14"
Current rating: 5

Comments

Archive

2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011