Postman报错Unsupported Media Type
程序员文章站
2022-07-12 20:29:00
...
使用POSTMAN调用接口的时候报了如下错误:
{
"timestamp": "2018-12-06T01:37:11.184+0000",
"status": 415,
"error": "Unsupported Media Type",
"message": "Content type 'text/plain;charset=UTF-8' not supported",
"path": "/testgu/ycyzharry"
}
问题原因:
Media Type,即是Internet Media Type,互联网媒体类型,也叫做MIME类型,在Http协议消息头中,使用Content-Type来表示具体请求中的媒体类型信息。
例如: Content-Type: text/html;charset:utf-8;
解决办法:选择“application/json”JSON数据格式类型发送Post请求,成功得到接口返回值。
上一篇: org.springframework.web.HttpMediaTypeNotSupportedException: Unsupported Media Type, status=415
下一篇: org.springframework.web.HttpMediaTypeNotSupportedException: Unsupported Media Type, status=415
推荐阅读
-
Python requests post 请求报错:415 Unsupported Media Type
-
Http status 415 Unsupported Media Type
-
Unsupported Media Type Http请求415错误
-
PostMan报415Unsupported Media Type
-
org.springframework.web.HttpMediaTypeNotSupportedException: Unsupported Media Type, status=415
-
Postman报错Unsupported Media Type
-
org.springframework.web.HttpMediaTypeNotSupportedException: Unsupported Media Type, status=415
-
请求接口时返回 http 415 unsupported media type错误解决方法
-
spring mvc 下,ajax调用后台controller方法时报415 (Unsupported Media Type)错误
-
请求接口时返回 http 415 unsupported media type错误解决方法