elasticsearch.ApiError: ApiError(406, ‘Content-Type header [application/vnd.elasticsearch+x-ndjson; compatible-with=8] is not supported’, ‘Content-Type header [application/vnd.elasticsearch+x-ndjson; compatible-with=8] is not supported’)
解决办法文章来源:https://www.toymoban.com/news/detail-533606.html
1.需要把elasticsearch安装版本和python Elasticsearch第三方库(模块)版本保持一致就可以解决
查看服务器安装版本
查看第三方库(模块)版本
2.不一致则对第三方库(模块)进行升级或者降级,从而达到一致文章来源地址https://www.toymoban.com/news/detail-533606.html
到了这里,关于python连接ES,elasticsearch.ApiError: ApiError(406报错解决的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!