forked from Gitlink/microservices
feat(项目管理适配线上环境): 打印请求Forge响应异常日志
Signed-off-by: OTTO <731554297@qq.com>
This commit is contained in:
parent
03a11ab7df
commit
f0e01ecaf6
|
@ -283,6 +283,7 @@ public class HttpAPIService {
|
|||
if (length != 0L) {
|
||||
String result = EntityUtils.toString(httpEntity);
|
||||
if (!JSON.isValid(result)) {
|
||||
logger.error("平台接口响应格式异常,状态码:{},响应内容:{}", httpStatusCode, result);
|
||||
throw new ServiceException("平台接口响应格式异常");
|
||||
}
|
||||
Object resultObj = JSON.parse(result);
|
||||
|
|
Loading…
Reference in New Issue