You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
result = Failure.of(newStatus(GET_TOKEN_ERROR, "no auth server response"));
598
-
logger.error("Error in token retrieval, response = " + responseBody);
593
+
result = Failure.of(newStatus(tokenResponse.getStatusCode(), tokenResponse.getCode(), tokenResponse.getMessage(), tokenResponse.getDescription(), tokenResponse.getSeverity()));
599
594
}
600
-
} catch (UnrecognizedPropertyExceptione) {
601
-
//in this case, cannot parse success token, which means the server doesn't response a successful token but some messages, we need to pass this message out.
602
-
result = Failure.of(newStatus(GET_TOKEN_ERROR, escapeBasedOnType(contentType, responseBody)));
603
-
logger.error("Error in token parsing", e);
604
-
} catch (IOException | RuntimeExceptione) {
605
-
result = Failure.of(newStatus(GET_TOKEN_ERROR, e.getMessage()));
606
-
logger.error("Error in token retrieval", e);
595
+
} else {
596
+
result = Failure.of(newStatus(GET_TOKEN_ERROR, "no auth server response"));
597
+
logger.error("Error in token retrieval, response = {}", responseBody);
0 commit comments