首页 > 其他分享 >ES新建索引报错application/x-www-form-urlencode不再支持,错误代码406

ES新建索引报错application/x-www-form-urlencode不再支持,错误代码406

时间:2022-09-27 18:46:56浏览次数:60  
标签:urlencode www form 406 错误代码 application 索引 报错

搭建es与head后创建索引遇到{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

1、进入容器  dockerexec -it id bash ;

2、vim  /usr/src/app/_site/vendor.js

3、/application 修改application/x-www-form-urlencoded 为application/json;charset=UTF-8;

4、重启容器

标签:urlencode,www,form,406,错误代码,application,索引,报错
From: https://www.cnblogs.com/innocenter/p/16735549.html

相关文章