ApiError(406, 'Content-Type header [application/vnd.elasticsearch+json; compatible-with=8] is not supported', 'Content-Type header [application/vnd.elasticsearch+json; compatible-with=8] is not supported') #18622
Replies: 2 comments
-
Hey there, @raghuldeva! Fancy seeing you here again. 😄 I hope you've been doing well since our last adventure. I'm diving into your issue now and will get back to you with a detailed response shortly. Hang tight! |
Beta Was this translation helpful? Give feedback.
-
This issue occurs because the version of Elasticsearch you are using is outdated. Due to a split between Elasticsearch and OpenSearch, it has become necessary to include the version information in the request headers. To resolve this issue, you should either downgrade your Elasticsearch version to 7 or lower, or downgrade the elasticsearch-py module version. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I've created Elastic search instance and accessing it in ElasticsearchStore, in Fast API, There is no error while initializing the elasticsearch or elasticsearchStore, When I'm trying to hit using fast api endpoint , I'm getting
ApiError(406, 'Content-Type header [application/vnd.elasticsearch+json; compatible-with=8] is not supported', 'Content-Type header [application/vnd.elasticsearch+json; compatible-with=8] is not supported')
System Info
python == 3.12.0
elastic-transport == 8.10.0
elasticsearch == 8.10.0
langchain == 0.1.11
langchain-community == 0.0.25
langchain-core == 0.1.29
fastapi == 0.104.1
Beta Was this translation helpful? Give feedback.
All reactions