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’)
解決辦法文章來源:http://www.zghlxwxcb.cn/news/detail-533606.html
1.需要把elasticsearch安裝版本和python Elasticsearch第三方庫(模塊)版本保持一致就可以解決
查看服務(wù)器安裝版本
查看第三方庫(模塊)版本
2.不一致則對第三方庫(模塊)進行升級或者降級,從而達到一致文章來源地址http://www.zghlxwxcb.cn/news/detail-533606.html
到了這里,關(guān)于python連接ES,elasticsearch.ApiError: ApiError(406報錯解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!