Skip to content

fix: 인증 사진 실패 시 실제 에러를 Sentry에 올림 - #227

Merged
JioCoder merged 1 commit into
mainfrom
fix/tracking-photo-error-detail
Oct 12, 2026
Merged

JioCoder merged 1 commit into
mainfrom
fix/tracking-photo-error-detail

Conversation

@JioCoder

@JioCoder JioCoder commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

문제

인증 사진 실패 시 고정 문자열만 Sentry에 보내 실제 에러를 버리고 있었습니다.

Sentry.captureException(new Error("TrackingPhotoUploadFailed"));

고정 문자열 new Error("TrackingPhotoUploadFailed")만 보내 실제 err를
버리고 있었다. 그래서 Sentry에 모든 실패가 한 덩어리로 묶이고, 업로드
실패인지 presigned 서명 불일치인지 savePhoto 검증 오류인지 구분할 수
없었다.

err를 그대로 captureException에 넘기고, statusCode를 태그로,
세션·마일스톤·촬영 수를 extra로 붙인다. 콘솔 로그에도 마일스톤과
상태 코드를 남겨 dev 빌드에서 바로 확인할 수 있게 한다.

409(마일스톤 중복)는 위에서 이미 따로 처리하고 return하므로 그대로 둔다.
@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: SEMOSAN/SEMOSAN_FE/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b63363d0-49d8-4fbd-ab4a-0c7f30495745
📥 Commits

Reviewing files that changed from the base of the PR and between 8e9e4cd and dd2fc7f.

📒 Files selected for processing (1)
  • app/(tabs)/tracking.tsx
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@JioCoder
JioCoder merged commit 87ed4c8 into main Oct 12, 2026
3 checks passed
@JioCoder
JioCoder deleted the fix/tracking-photo-error-detail branch October 12, 2026 04:14
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