Repository navigation
fix: 단기예보 발표 누락 시 이전 발표분으로 대체 조회 - #81
Merged
Merged
Conversation
- 최신 단기예보가 NO_DATA면 3시간씩 최대 4단계 이전 발표분까지 조회 - 미세먼지는 재시도 없이 5초 타임아웃으로 날씨 응답 지연 방지 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
문제
#80 배포 후에도
!날씨가 계속 실패원인
실제 키로 확인한 결과, 기상청 단기예보(
getVilageFcst)의 오늘 08시·11시 발표분이 서버에 없음 (resultCode 03 NO_DATA).02·05시 발표분과 전날 발표분은 정상. 코드가 최신 발표분 하나만 조회해서 계속 실패하고 있었음.
또한 에어코리아가 응답 없이 매달리는 상태여서, 재시도(8초×3)까지 하면 날씨 응답이 최대 ~25초 지연될 수 있었음.
변경
NO_DATA면 3시간씩 최대 4단계 이전 발표분으로 거슬러 조회 (오늘 날짜 예보는 이전 발표분에도 포함)테스트
getWeatherData()실행 → 11시·08시 발표분 건너뛰고 05시 발표분으로 정상 응답 (약 1초)tsc --noEmit,npm run lint,format:check,npm test통과🤖 Generated with Claude Code