|
@@ -198,10 +198,10 @@ public class AppBootstrap {
|
|
|
Map<String, String> headers = Maps.newHashMap();
|
|
|
headers.put("Trace-Id", startupCode);
|
|
|
resp = OKHttpUtil.call(HttpMethod.POST, url.toString(), headers, req);
|
|
|
+ String body = resp.body().string();
|
|
|
if (resp.code() != HttpStatus.OK.value()) {
|
|
|
- throw new ExamCloudRuntimeException("fail to get configuration");
|
|
|
+ throw new ExamCloudRuntimeException("fail to get configuration. " + body);
|
|
|
}
|
|
|
- String body = resp.body().string();
|
|
|
|
|
|
String encryptedAppId = resp.header("App-Id");
|
|
|
String encryptedSecretKey = resp.header("Secret-Key");
|