-
Notifications
You must be signed in to change notification settings - Fork 1
[25.07.08 / TASK-223] Fix - Sentry에서 감지된 여러 오류들 해결 #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
리더보드에서 배열이 비었을 경우에도 map을 실행시키던 문제 해결
Timeout이 과하게 발생하는 오류 수정
post에 401 오류 발생 후 id 값이 undefined로 인식되는 오류 수정
왜인지는 모르겠으나 무조건 IOS 계열에서 발생하는 searchParams가 null로 인식되는 오류 수정 발생 이유에 대해 좀 트래킹해봐야 하지 않을까 싶음
Walkthrough이 변경사항은 fetch 요청의 타임아웃을 10초에서 5초로 줄이고, 일부 컴포넌트에서 undefined 상황을 안전하게 처리하도록 배열 연산과 옵셔널 체이닝을 추가하여 런타임 오류를 방지합니다. Changes
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드 확인 했습니다! 타임아웃은 왠지 리더보드쪽 때문일 것 같네요?! 😂
노션에 써주신 이슈에 대응해서 잘 수정해주신 것 같아요! 고생하셨습니다! 👍 🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드 잘 읽었습니다! 고생하셨습니다~!!
좋았던 점
- 타임아웃 시간 조정하신 부분이 좋았습니다. 요청 실패 빈도도 줄어들 수 있겠네요!
- searchParams가 undefined일 경우에도, 안전하게 동작하도록 하신 부분이 좋았습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋았던 점
- sentry 보고 빠르게 이슈 대응, 대응 개발 해주셔서 감사해요! 고생많으셨어요! 전체적으로 type 강화가 좋습니다!!
아쉬운 점
- 코멘트에 남긴 바와 같이 timeout 은 올리지 않았으면 해요.
src/apis/instance.request.ts
Outdated
import { ServerNotRespondingError } from '@/errors'; | ||
|
||
const ABORT_MS = 10000; | ||
const ABORT_MS = 15 * 1000; // 타임아웃 시간이 너무 짧은건지.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사실 상용 서비스 기준 5초 정도에 무조건 컷해야하는게 맞습니다.. 15초 아무도 못기다려요..
이거 그대로 두는걸 추천,, 저희가 대시보드를 바꾸는게 더 맞는 것 같아요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
알겠습니다!
사실 timeout 관련 오류가 많아서 일단 반영하긴 했는데, 과한 것 같긴 하네요;;
이참에 5초로 내려보겠습니다!
🔥 변경 사항
Sentry에서 감지한 여러 오류들의 이유로 의심되는 부분들을 조금씩 수정하였습니다.
우선은 이렇게 수정해두고, 이 부분이 오류의 이유가 맞았는지 계속 확인해 볼 계획입니다!
🏷 관련 이슈
📸 스크린샷 (UI 변경 시 필수)
X
📌 체크리스트
Summary by CodeRabbit