Print response from http call to keycloak server

Closes #13557
This commit is contained in:
yaokai2 2022-08-05 10:40:50 +08:00 committed by Pedro Igor
parent 1cdc21f0ff
commit fb57d1972f

View file

@ -92,7 +92,7 @@ public class HttpMethod<R> {
int statusCode = statusLine.getStatusCode(); int statusCode = statusLine.getStatusCode();
if (statusCode < 200 || statusCode >= 300) { if (statusCode < 200 || statusCode >= 300) {
throw new HttpResponseException("Unexpected response from server: " + statusCode + " / " + statusLine.getReasonPhrase(), statusCode, statusLine.getReasonPhrase(), bytes); throw new HttpResponseException("Unexpected response from server: " + statusCode + " / " + statusLine.getReasonPhrase() + " Response : " + new String(bytes), statusCode, statusLine.getReasonPhrase(), bytes);
} }
if (bytes == null) { if (bytes == null) {