Skip to content

[#651] REST API 실패 응답의 status code와 body를 Crashlytics에 기록하도록 개선한다#653

Merged
opficdev merged 1 commit into
developfrom
refactor/#651-restApi-crashlytics
Jun 27, 2026
Merged

[#651] REST API 실패 응답의 status code와 body를 Crashlytics에 기록하도록 개선한다#653
opficdev merged 1 commit into
developfrom
refactor/#651-restApi-crashlytics

Conversation

@opficdev

Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

REST API 실패 시 Crashlytics non-fatal 로그에서 서버 응답의 status code와 에러 메시지를 확인할 수 있도록 개선

📝 작업 내용

📌 요약

  • FirebaseCrashlyticsHelper에서 NXError 기반 REST 실패 응답 메타데이터 추출
  • Crashlytics userInforestStatusCode, restErrorMessage 추가
  • REST 응답 body 파싱 범위를 에러 메시지로 제한

🔍 상세

  • NXError.invalidStatus, NXError.server에서 HTTP status code와 response data 추출
  • 서버 응답 body의 message 값을 디코딩해 Crashlytics 메타데이터로 기록
  • 기존 service별 record 호출부와 FunctionAPIClient 에러 전파 흐름은 유지

📸 영상 / 이미지 (Optional)

@opficdev opficdev self-assigned this Jun 27, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request integrates the Nexa module into FirebaseCrashlyticsHelper to extract and include REST error metadata (status code and error message) from NXError instances in Crashlytics reports. The reviewer suggested using Swift's native merge(_:uniquingKeysWith:) method instead of iterating with forEach to merge dictionaries more declaratively.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@opficdev opficdev merged commit 62c12e0 into develop Jun 27, 2026
6 checks passed
@opficdev opficdev deleted the refactor/#651-restApi-crashlytics branch June 27, 2026 08:22
@opficdev opficdev added the qa TestFlight에 배포된 버전 label Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

qa TestFlight에 배포된 버전

Projects

None yet

Development

Successfully merging this pull request may close these issues.

REST API 실패 응답의 status code와 body를 Crashlytics에 기록하도록 개선한다

1 participant