Skip to content

Commit

Permalink
[#46] ci: 에러 로그 확인
Browse files Browse the repository at this point in the history
  • Loading branch information
kimyu0218 committed Feb 6, 2025
1 parent 5374e48 commit 57c34b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- fix/#46-카카오-api-호출-오류

env:
NCP_ACCESS_KEY: ${{ secrets.NCP_ACCESS_KEY }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.nexters.jaknaesocore.domain.auth.restclient.errorhandler.KakaoClientErrorHandler;
import org.springframework.context.annotation.Profile;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.http.HttpStatusCode;
import org.springframework.http.converter.ByteArrayHttpMessageConverter;
import org.springframework.http.converter.FormHttpMessageConverter;
import org.springframework.http.converter.StringHttpMessageConverter;
Expand Down Expand Up @@ -47,10 +46,11 @@ public <S> S create(final Class<S> httpClient) {
converters.add(new FormHttpMessageConverter());
converters.add(new MappingJackson2HttpMessageConverter());
})
.defaultStatusHandler(
HttpStatusCode::isError,
(request, response) ->
errorHandler.handleError(response.getStatusCode(), request, response))
// .defaultStatusHandler(
// HttpStatusCode::isError,
// (request, response) ->
// errorHandler.handleError(response.getStatusCode(), request,
// response))
.build();

return HttpServiceProxyFactory.builderFor(RestClientAdapter.create(restClient))
Expand Down

0 comments on commit 57c34b3

Please sign in to comment.