NutzCN Logo
问答 使用 Http.post3 报错,
发布于 2013天前 作者 qq_e3870666 2131 次浏览 复制 上一个帖子 下一个帖子
标签:

@Override
public String amountQueryscore(String phone) {
Map params = new LinkedHashMap();
Map body = new HashMap();
params.put("access_token", amountCallbackToken());
params.put("method", "qryUserInfo");
params.put("format", "json");
body.put("TELNUM", phone) ;
Response response= Http.post3(Constants.URL_BUSINESS, Json.toJson(body), Header.create(params), 3000);
System.out.println("Query Score:\t" + response.getContent());
return response.getContent();
}
错误:
Exception in thread "main" org.nutz.json.JsonException: !Json syntax error nearby [row:1,col:1 char '<'], reason: 'Unexpect String =

Status page


Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request
You can get technical details here.
Please continue your visit at our home page.


4 回复

贴完整报错信息,用"插入代码"按钮

Exception in thread "main" org.nutz.json.JsonException: !Json syntax error nearby [row:1,col:1 char '<'], reason: 'Unexpect String =

Status page


Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request
You can get technical details here.
Please continue your visit at our home page.


Exception in thread "main" org.nutz.json.JsonException: !Json syntax error nearby [row:1,col:1 char '<'], reason: 'Unexpect String = <html>
<head>
   <title>Status page</title>
</head>
<body style="font-family: sans-serif;">
<p style="font-size: 1.2em;font-weight: bold;margin: 1em 0px;">Internal Server Error</p>
<p>The server encountered an unexpected condition which prevented it from fulfilling the request</p>
<p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1">here</a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>

后台的报错日志,不是页面

添加回复
请先登陆
回到顶部