https post 返回400,求各路大神帮忙

wudliy 2018-08-09 09:15:45
result:status:HTTP/1.1 400 headers: Server: nginx Date: Thu, 09 Aug 2018 13:13:14 GMT Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Strict-Transport-Security: max-age=31536000;response length:584response content:{"timestamp":"20180809211314","status":400,"error":"Bad Request","exception":"org.springframework.http.converter.HttpMessageNotReadableException","message":"Could not read document: Unrecognized token 'orderNo': was expecting ('true', 'false' or 'null')\n at [Source: java.io.PushbackInputStream@3efda3aa; line: 1, column: 9]; nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'orderNo': was expecting ('true', 'false' or 'null')\n at [Source: java.io.PushbackInputStream@3efda3aa; line: 1, column: 9]","path":"/idap-openapi/server/h5/geth5faceid"}
...全文
1122 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
松鼠不是鼠 2018-08-10
  • 打赏
  • 举报
回复
你看看你页面传的参数和后台接收参数的类型对不对,例如后台接收的类型为int,前台传过来的参数为null,也会出现这个错误400 bad request
weixin_40057704 2018-08-10
  • 打赏
  • 举报
回复
orderNo传的值不对 需要true false 或者 null 结果传过来的是其他
zzxiaoma 2018-08-09
  • 打赏
  • 举报
回复
400是地址不对

50,542

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧