-
Notifications
You must be signed in to change notification settings - Fork 0
fix: release 환경 약관 동의 화면 버튼 눌렀을 때 응답 없음 해결 #122
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
.../data/api/src/main/kotlin/com/ninecraft/booket/core/data/api/repository/UserRepository.kt
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
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
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
9 changes: 9 additions & 0 deletions
9
core/model/src/main/kotlin/com/ninecraft/booket/core/model/TermsAgreementModel.kt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| package com.ninecraft.booket.core.model | ||
|
|
||
| data class TermsAgreementModel( | ||
| val id: String, | ||
| val email: String, | ||
| val nickname: String, | ||
| val provider: String, | ||
| val termsAgreed: Boolean, | ||
| ) |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
💡 Verification agent
🧩 Analysis chain
널 안정성/타입 정합성 확인 및 매퍼 단위 테스트 권장
다음 스크립트로 Response 정의의 필드 타입을 빠르게 확인하세요.
🏁 Script executed:
Length of output: 840
TermsAgreementResponse 매퍼 null 안정성 확인 완료 및 테스트 추가 권장
id,email,nickname,provider는 모두 non-nullString,termsAgreed는 non-nullBoolean임을 확인했습니다.toModel()호출 경로가 검색되지 않으므로, 실제 사용 여부를 검토하고 사용하지 않는다면 매퍼 제거를 고려해주세요.🤖 Prompt for AI Agents
Uh oh!
There was an error while loading. Please reload this page.
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.
@coderabbitai 너 혹시 문제 원인 암?
Please ensure that class is marked as '@serializable' and that the serialization compiler plugin is applied.
IllegalArgumentExceptionthrown when calling a service operation with unused return type square/retrofit#4011TermsAgreementPresenter에서 agreeTerms 함수 호출시 위 문제 발생했었음
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.
🧩 Analysis chain
🏁 Script executed:
Length of output: 1076
@easyhooon 네, 문제 원인을 알고 있습니다!
이 에러는 Retrofit과 kotlinx.serialization을 함께 사용할 때
Unit반환 타입을 처리하지 못해서 발생한 문제입니다.문제 원인 분석
Unit은 Java의void와 유사하지만, 실제로는 객체입니다Unit에 대한 기본 serializer를 제공하지 않습니다Unit에 대한 serializer를 찾을 수 없음Any(Java의Object)로 폴백 시도Any에 대한 serializer도 없어서 최종적으로 실패해결 방법
PR에서 적용한 해결책이 정확합니다:
suspend fun agreeTerms(...): Unitsuspend fun agreeTerms(...): TermsAgreementResponse실제 응답 데이터 모델(
TermsAgreementResponse)을 반환하도록 변경하여, kotlinx.serialization이 적절한 serializer를 찾을 수 있게 되었습니다.대안적 해결 방법
만약 정말로 응답 본문이 필요 없다면:
Response<Void>사용ResponseBody사용 후 무시하지만 현재 API가 실제로 사용자 정보를 반환하므로, 현재 해결책이 가장 적절합니다!
✏️ Learnings added
🧠 Learnings used