I am getting error in above code when trying to connect to the aws domain
as Excepting JSON data but repsones content type is text/html please guide me how to correct this in my Elasticsearch config (above)
node:aws_domain, status: 400, [es/indices.create] Expecting JSON data but response content-type is: text/html
Elasticsearch does not respond with any HTML messages, so if you are getting that there must be a proxy in place between you and Elasticsearch. If you are using an AWS managed service they control the proxies but also use non-standard builds and plugins, so there is nothing we can help with here. You will need to contact AWS support.
Elastic does offer a Elasticsearch as a hosted service that as far as I know do not suffer from this issue and has the very latest versions. Have you looked at Elastic Cloud?
I had solved the problem by changing the versions there is version mismatch between what the AWS support and what Elasticsearch Dependency has been added
This article would help and it means you can even use the latest Spring Data Elasticsearch dependency and it works. You have to use Google Translate, it is a Korean Developer blog.
OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance. See What is OpenSearch and the OpenSearch Dashboard? | Elastic for more details.
(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns )
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.