Skip to content

Commit

Permalink
[Refactor] 날씨 api 오류 서버테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
hen715 committed Aug 27, 2024
1 parent 43465bb commit 95fa1cc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ public JsonArray getJsonData(String url){
.onStatus(HttpStatusCode::is4xxClientError, clientResponse -> Mono.just(new MyException(MyErrorCode.WEATHER_REQUEST_ERROR)))
.bodyToMono(String.class)
.block();
log.info(result.toString());
try {
JsonObject jsonObject = JsonParser.parseString(result).getAsJsonObject();
JsonObject body = jsonObject.getAsJsonObject("response").getAsJsonObject("body");
Expand Down

0 comments on commit 95fa1cc

Please sign in to comment.