Skip to content

fix: KakaoGeocodingClient 에러 처리 누락 수정 - #39

Merged
1ub7 merged 1 commit into
developfrom
feat/manage-stations-geocoding
Oct 2, 2026
Merged

1ub7 merged 1 commit into
developfrom
feat/manage-stations-geocoding

Conversation

@1ub7

@1ub7 1ub7 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

📝 작업 내용

/manage/stations/geocode-search 호출 시 어떤 주소를 넣어도 500이 나던 문제 관련 수정했습니다.

🔧 변경 사항

  • KakaoGeocodingClient.geocode()에서 restTemplate.exchange() 호출이 try 블록 밖에 있던 버그 수정
    • 카카오가 에러를 4xx/5xx 상태코드로 주는 경우 예외가 그대로 전파되어 디테일 없는 500만 응답되고 있었음
  • RestClientResponseException을 별도로 잡아서 카카오 응답 상태코드/바디를 로그에 남기도록 추가

📌 참고사항

try/catch 누락은 진짜 버그였는데 500의 진짜 원인은 아직 로그로 미확인 상태입니다. 배포 후 로그에 정확한 원인이 찍힐 겁니다.

@1ub7
1ub7 requested a review from s26047-code October 2, 2026 13:11
@1ub7 1ub7 changed the title fix: akaoGeocodingClient 에러 처리 누락 수정 fix: KakaoGeocodingClient 에러 처리 누락 수정 Oct 2, 2026
@1ub7
1ub7 merged commit 01ac54c into develop Oct 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants