Skip to content

[fix] AI 서버 연결 실패 시 500 오류 수정#120

Merged
nYeonG4001 merged 2 commits intodevelopV2from
auto/fix/ai-client-webclient-exception
Apr 12, 2026
Merged

[fix] AI 서버 연결 실패 시 500 오류 수정#120
nYeonG4001 merged 2 commits intodevelopV2from
auto/fix/ai-client-webclient-exception

Conversation

@nYeonG4001
Copy link
Copy Markdown
Collaborator

@nYeonG4001 nYeonG4001 commented Apr 12, 2026

Summary

  • AiServerClient.fetchSummary() / fetchQuiz()에서 WebClientResponseException만 catch하던 것을 WebClientException으로 변경
  • AI 서버 연결 실패·타임아웃 시 발생하는 WebClientRequestException이 처리되지 않아 500 Internal Server Error로 빠지던 문제 수정
  • 타임아웃(TimeoutException) → AI_TIMEOUT (504), 그 외 연결 실패 / HTTP 에러 → AI_SERVER_ERROR (500)으로 구분 처리

Test plan

  • AI 서버가 꺼진 상태에서 GET /contents/{id}/summary 호출 → 500 대신 AI_001 에러 응답 확인
  • AI 서버 타임아웃 상황에서 호출 → AI_002 (504) 응답 확인
  • AI 서버 정상 상태에서 요약 조회 정상 동작 확인

@sonarqubecloud
Copy link
Copy Markdown

@nYeonG4001 nYeonG4001 merged commit 1a9db8c into developV2 Apr 12, 2026
3 checks passed
@nYeonG4001 nYeonG4001 deleted the auto/fix/ai-client-webclient-exception branch April 12, 2026 02:37
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.

1 participant