elasticsearch6.x {error:Content-Type header [application/x-www-form-urlencoded] is not supported
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/dtiove/article/details/78870607
问题描述
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}
1
2
官方解释:
官方改变
解决方法
curl -H "Content-Type: application/json" -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}
1
2
指定header头即可
---------------------
作者:dtiove
来源:CSDN
原文:https://blog.csdn.net/dtiove/article/details/78870607
版权声明:本文为博主原创文章,转载请附上博文链接!
elasticsearch6.x {error:Content-Type header [application/x-www-form-urlencoded] is not supported相关推荐
- 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 ...
- 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 ...
- elasticsearch6.8 {“error“:“Content-Type header [application/x-www-form-urlencoded] is not supported“
在postman中执行创建mapping时( _mapping?pretty) 提示:"error":"Content-Type header [application/ ...
- “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 ...
- 16-elasticsearch6.x {“error“:“Content-Type header [application/x-www-form-urlencoded] is not support
1.概述 问题:elasticsearch6.x {"error":"Content-Type header [application/x-www-form-urlenc ...
- Error while extracting response for type [] and content type [],json返回值被解析为xml
在使用restTemplate请求restful接口时,在特定情况下总会将返回的json数据解析为xml数据然后处理,接着就会爆出标题中的错误: Error while extracting resp ...
- 苹果微信推送服务器错误,接入WxPusher微信推送服务出现错误:Content type application/x...
背景 使用WxPusher微信推送服务 ,可以及时的将服务的一些运行异常信息,发送到自己的微信上,方便了解服务的运行状态(PS:这个服务是免费的). 你可以在这里看到WxPusher微信推送服务的接入 ...
- 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 ...
- jmeter报“msg“:“Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported“的解决方法
jmeter报"msg":"Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supp ...
最新文章
- linux驱动模块编译入内核,Linux内核驱动模块编译
- redis高级-内存淘汰策略
- iOS UIButton根据内容自动布局
- 2013\Province_Java_B\1.世纪末的星期
- 2014年中国新闻业年度观察报告
- 前端:JS/27/HTML DOM简介和新特性,HTML DOM访问HTML元素的方法,元素对象的属性(标准属性),noscroll事件,实例:书讯快递
- Python基础-函数,高阶函数
- SSM三大框架工作流程与原理详解
- Android颜色选择器
- cesium绘制网格_Cesium (五) 栅格图层
- 计算机方面各种级别论文版面费,国内计算机类杂志投稿评价.doc
- php session fixation,Session Fixation 攻防实战(图)
- Neo4j3.5学习笔记——Traversal遍历之黑客帝国
- GBase 8s 入门
- 安卓模拟器,需要的自取
- 手机3D的新境界:Omnia II 是3D方面的力作!!
- ios ZXing 二维码、条形码扫描
- 典型ASIC设计流程
- shp文件的可视化与编辑
- UE4-LOD理解-Distance culling(距离剔除体积)和Visibility culling(可视化剔除体积)
热门文章
- 计算机接口配件,最近发布:最新的计算机外部接口计算机主板外部接口简介计算机主板接口简介...
- ontouchevent android,android onTouchEvent处理机制总结(必看)
- php清空dns缓存文件,dns清空-windows刷新本地DNS缓存的几种方法
- Hadoop-2.8.0集群搭建、hadoop源码编译和安装、host配置、ssh免密登录、hadoop配置文件中的参数配置参数总结、hadoop集群测试,安装过程中的常见错误
- 4.事务提交过程,事务基本概念,Oracle中的事务生命周期,保存点savepoint,数据库的隔离级别
- Struts2.perperties中的配置详解
- 路由器网口1一直闪烁正常吗_电信光猫上的网口1一直在闪 网络一直都在闪断
- 金融python培训班_2019年做金融,一定要学Python!:附Python视频教程
- 两个列表合并去重_把两个pdf合并成一个如何解决?
- HALCON Progress