Elasticsearch9.0 使用Sense发送请求Content-Type报错
使用Chrome浏览器插件sense请求时,报错406 如下图查询官方文档得到说明,从6.0版本开始,本次请求必须加上正确的 Content-Type,详细见官网说明https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requestsSense 0.9.0 版本不能支持elasticsearch6.x,查看了源码,发现在src/base.js 67 有一个ajax ,于是改了一下这个插件,
原创
2021-11-26 11:51:00 ·
1441 阅读 ·
0 评论