解决ES报错Unable to parse response body for Response问题
作者:zmbwcx2003
在Java中调用接口向ES中添加数据时,报错:UnabletoparseresponsebodyforResponse,原因是Spring与ES版本冲突引起的报错解决方案更改ES版本或是Spring的版本,在ES高版本中,索引建立更名为数据视图,无论索引是否存在有数据都可以建立索引模式
关于ES报错Unable to parse response body for Response
在Java中调用接口向ES中添加数据时,报错:
Unable to parse response body for Response{requestLine=PUT /course-publish/_doc/137?timeout=1m HTTP/1.1, host=http://localhost:9200, response=HTTP/1.1 201 Created}

但是在Kibana中通过get查询发现数据已经存在

通过查询发现是返回时解析出现错误,Spring与ES版本冲突引起的报错
解决方案
更改ES版本或是Spring的版本。
其次,在ES高版本中Kibana的控制台页面有较大改动,索引建立更名为数据视图

在高版本中,无论索引是否存在有数据都可以建立索引模式,但是在低版本中必须存入数据后才可以创建索引模式
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。
您可能感兴趣的文章:
- 解决Docker删除镜像报错:Error response from daemon:conflict:unable to delete xxx (cannot be forced)
- 解决Tomcat启动报错:严重:Unable to process Jar entry [META-INF/versions/9/module-info.class]
- Tomcat启动报错:严重: Unable to process Jar entry [module-info.class]
- npm install报错unable to resolve dependency tree的解决办法
- npm安装依赖报错ERESOLVE unable to resolve dependency tree的解决方法
- 解决SpringBoot运行Test时报错:SpringBoot Unable to find
