Web Service 返回报whitelabel error page
来源:互联网 发布:芜湖搜索引擎优化 编辑:程序博客网 时间:2024/06/14 04:24
现在我要调用一个接口,但是一直报错,本以为是接口本身的问题,但是接口却没有问题,能够正确调试。
先看一下我的请求内容:
url:http://test.csb.sh.ctc.com:7807/openit/class_7?ServiceName=ClaimCoopreaOppor&ServiceVer=1.0&Consumer=XXX
data:{
"taskId":"1505789835011",
"userworkNum:"AA008"
}
注:JSON POST请求
再看一下返回内容:<html><body><h1>Whitelabel Error Page</h1><p>This application has no explicit mapping for /error, so you are seeing this as a fallback.</p><div id='created'>Fri Sep 22 09:24:57 GMT+08:00 2017</div><div>There was an unexpected error (type=Bad Request, status=400).</div><div>Could not read document: Unexpected character ('A' (code 65)): was expecting a colon to separate field name and value at [Source: java.io.PushbackInputStream@75e074a8; line: 3, column: 16]; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('A' (code 65)): was expecting a colon to separate field name and value at [Source: java.io.PushbackInputStream@75e074a8; line: 3, column: 16]</div></body></html>
在这里返回异常,这并不是我想要的返回内容,从报错返回内容分析,
Whitelabel Error Page(报错页面)
This application has no explicit mapping for /error, so you are seeing this as a fallback(此应用程序没有显式的映射/错误,所以您将此视为回退。随便拿去翻译的,大概意思,没有专门为这个Bug做相应的处理,统一由Whitelabel Error Page显示)
Fri Sep 22 09:24:57 GMT+08:00 2017(报错发生时间)
There was an unexpected error (type=Bad Request, status=400).(有一个想不到的错误,类型:错的请求 状态码:400 看到400 以为是路径的问题,我去检查了一遍,确认URL没有错)
Could not read document: Unexpected character ('A' (code 65)): was expecting a colon to separate field name and value at [Source: java.io.PushbackInputStream@75e074a8; line: 3, column: 16]; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('A' (code 65)): was expecting a colon to separate field name and value at [Source: java.io.PushbackInputStream@75e074a8; line: 3, column: 16](这句看不什么懂,但还是知道 行 字符 字段 等等,根据现在返回的报错信息,猜想是否数据有问题。)
数据:{
"taskId":"1505789835011",
"userworkNum:"AA008"
}
{
"taskId":"1505789835011",
"userworkNum“:"AA008"
}
- Web Service 返回报whitelabel error page
- SpringBoot报错Whitelabel Error Page
- Spring Boot报错Whitelabel Error Page
- Spring Boot报错Whitelabel Error Page
- Whitelabel error page问题
- Whitelabel Error Page
- Whitelabel Error Page
- Whitelabel Error Page
- Whitelabel Error Page
- 笔记--Whitelabel Error Page
- Whitelabel Error Page异常
- 处理Whitelabel Error Page
- Whitelabel Error Page
- 13.2 Spring Boot启动报错:Whitelabel Error Page
- 13.2 Spring Boot启动报错:Whitelabel Error Page
- spring boot初学hello world访问templates报Whitelabel Error Page 404
- SpringBoot接口服务处理Whitelabel Error Page
- spring boot: Whitelabel Error Page的解决方案
- vb/C# 中的win32开发
- JavaScript框架之AngularJS学习——准备
- 欢迎使用CSDN-markdown编辑器
- Xshell5连接Linux失败该怎么办?
- 线段树查询 II-LintCode
- Web Service 返回报whitelabel error page
- 思维导图回顾之阿里巴巴投资历史
- GOF模式总结
- Linux中JAVA的配置
- java学习线路
- SQL Server数据类型介绍
- 宝塔Linux面板忘记账号密码,恢复并设置方法
- Mysql 根据时间戳按年月日分组统计
- 吴恩达Coursera深度学习课程 DeepLearning.ai 提炼笔记(1-3)-- 浅层神经网络