启动失败的问题 屮
This commit is contained in:
parent
da74a124e2
commit
e9cb2e061a
|
@ -115,12 +115,16 @@ public class MonitorService {
|
||||||
if (e.getStatusCode() == HttpStatus.UNAUTHORIZED) {
|
if (e.getStatusCode() == HttpStatus.UNAUTHORIZED) {
|
||||||
String responseString = e.getResponseBodyAsString();
|
String responseString = e.getResponseBodyAsString();
|
||||||
reponse = JSONObject.parseObject(responseString, HashMap.class);
|
reponse = JSONObject.parseObject(responseString, HashMap.class);
|
||||||
|
} else {
|
||||||
|
reponse = null;
|
||||||
}
|
}
|
||||||
|
} catch (Exception exception) {
|
||||||
|
reponse = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reponse == null) {
|
if (reponse == null) {
|
||||||
log.error("[monitor-capture]:" + "监控系统登录握手失败");
|
log.error("[monitor-capture]:" + "监控系统登录握手失败");
|
||||||
throw new RuntimeException("监控系统登录握手失败");
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//登录
|
//登录
|
||||||
|
|
Loading…
Reference in New Issue