1.概述

问题:elasticsearch6.x {“error”:“Content-Type header [application/x-www-form-urlencoded] is not supported”

描述:

curl -XPOST 192.168.14.173:32000/test_index_1221/test_type/5 -d '{'user_name':"xiaoming"}'
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406
}

官方改变:https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests

解决方法:

curl -H "Content-Type: application/json" -XPOST 192.168.14.173:32000/test_index_1221/test_type/5 -d '{'user_name':"xiaoming"}'

16-elasticsearch6.x {“error“:“Content-Type header [application/x-www-form-urlencoded] is not support相关推荐

  1. Springboot 报错Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported

    SpringBoot错误解决 1.错误展示 2021-03-23 12:20:02.805 ERROR org.springframework.web.HttpMediaTypeNotSupporte ...

  2. Error while extracting response for type [class xxx] and content type application/xml;charset=UTF-8

    强烈推荐一个大神的人工智能的教程:http://www.captainbed.net/zhanghan [前言] 最近在用restTemplate进行一次http请求时发现了报错(Error whil ...

  3. elasticsearch6.x {error:Content-Type header [application/x-www-form-urlencoded] is not supported

    版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/dtiove/article/details/78870607 问题描述 curl -XPOST 19 ...

  4. elasticsearch6.8 {“error“:“Content-Type header [application/x-www-form-urlencoded] is not supported“

    在postman中执行创建mapping时( _mapping?pretty) 提示:"error":"Content-Type header [application/ ...

  5. “Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported“解决方法

    项目接口返回 code: 500 data: null message: "Content type 'application/x-www-form-urlencoded;charset=U ...

  6. Error while extracting response for type [] and content type [],json返回值被解析为xml

    在使用restTemplate请求restful接口时,在特定情况下总会将返回的json数据解析为xml数据然后处理,接着就会爆出标题中的错误: Error while extracting resp ...

  7. Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported

    问题描述: 我写了一个接口,这个接口参数是这样的 @ResponseBody @RequestMapping(value = "importData", method = Requ ...

  8. 苹果微信推送服务器错误,接入WxPusher微信推送服务出现错误:Content type application/x...

    背景 使用WxPusher微信推送服务 ,可以及时的将服务的一些运行异常信息,发送到自己的微信上,方便了解服务的运行状态(PS:这个服务是免费的). 你可以在这里看到WxPusher微信推送服务的接入 ...

  9. Spring Boot——[Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported]解决方案

    问题描述 2020-02-13 19:32:04.322 WARN 109508 --- [p-nio-80-exec-4] .m.m.a.ExceptionHandlerExceptionResol ...

最新文章

  1. Linux下tomcat的安装与卸载以及配置(超简单)
  2. python中语法错误-python中的语法错误是指什么
  3. vmstat 命令的使用
  4. 2019-11-18 惯性环节对脉冲的响应曲线怎么画是正确的
  5. 【BZOJ】2190 [SDOI2008]仪仗队
  6. java oracle 图片_JAVA读取Oracle中的blob图片字段并显示
  7. 关于方程求根的解决方案
  8. ENVI修复图像坏点扩展补丁
  9. leetcode199. 二叉树的右视图(层序遍历03)
  10. android xml中设置水平虚线及竖直虚线
  11. MIT最新深度学习入门公开课
  12. java对获取的字节数组进行处理
  13. Linux 4.16 正式发布:不再支持 8 种 CPU 架构,内核减少了 450000 行代码 !
  14. Hybrid Astar 算法剖析和实现(一)
  15. Matlab 画图(全网最优质文章)
  16. 源代码管理工具 (git,CVS,SVN,Clearcase,VSS)
  17. CSAPP,拆弹到一点!!!
  18. 服务器安装Ubuntu Server 18.04及磁盘分区
  19. 【c/c++】二次方程计算器
  20. jQuery菜鸟教程01

热门文章

  1. 4G换5G关口,智能手机如何抢回“失去的一个月”
  2. 超5000元!骁龙660新机发布:限量供应价格感人
  3. 苹果最新专利曝光:苹果可能正研发可折叠iPhone
  4. 虚拟资源拳王公社:小白从0到1搭建个人私域流量池的实操方法,6招玩转流量裂变法
  5. C语言教程第六章:指针(2)
  6. OpenGL(三)——OpenGL着色器基础
  7. python 点击按钮 click_用selenium和Python单击“onclick”按钮
  8. rtmp服务器 协议之同步
  9. 什么是利用计算机化的知识进行自动推理,基于实例模型的知识推理及其在自动阅卷系统中的应用...
  10. python apply_async执行不了_python – Django Celery apply_async不起作用