Skip to content

Commit

Permalink
chore: commit rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchandev committed Jun 12, 2024
1 parent a157b81 commit d7433bc
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,9 @@ public <T, V> Mono<T> post(String url, V body, Class<T> responseClass, String...
}

private Function<ClientResponse, Mono<? extends Throwable>> onError() {
return response -> response.bodyToMono(String.class)
.flatMap(errorBody -> {
log.info("Status Code: {}", response.statusCode());
log.info("Error Body: {}", errorBody);
return Mono.error(new WebClientException(response.statusCode().value()));
});
return response -> {
throw new WebClientException(response.statusCode().value());
};
}

private Consumer<HttpHeaders> convertStringToHttpHeaders(String... headers) {
Expand Down

0 comments on commit d7433bc

Please sign in to comment.