fix: CameraViewController 이미지 업로드 실패 이슈 수정#796
Merged
Conversation
- Tuist ThirdPartyLib 모듈 추가 및 Firebase 관련 의존성 ThirdPartyLib으로 의존성 이전 - App, Uitl 모듈 ThirdPartyLib 모듈 의존성 추가 - Observable+NetworkRetry 타입 추가 - HTTPHeaders Content-Type, Content-Length 추가 - PostRepository uploadPostImageToS3Bucket 메서드 내부 비즈니스 로직 수정 - CameraViewReactor, CameraDisplayViewReactor 이미지 관련 예외처리 로직 수정 - ImageCompressionService, ImageCompressionServiceProtocol 이미지 압축 관련 비즈니스 로직 추가 - PostDIContainer ImageCompressionService 의존성 추가
…into fix/#795-camera-upload-failure-modify
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.
🔵PR을 올리기 전 아래 사항을 확인해주세요.
(위 내용은 지워주세요)
😽개요
🛠️작업 내용
ImageCompressionService모듈 구현timeoutIntervalForResource을 180초로 지정 이후 TimeOut 발생하도록 했습니다.PreSigned URL 만료시간에 맞춰 TimeOut 발생하도록 코드 수정
timeoutIntervalForResource를 180초로 지정하여 지정된 네트워크 시간 내에 네트워크 요청이 안 오면 TimeOut 발생하도록 로직을 수정하였습니다. 이유는 해당 시간 내에 네트워크 요청하지 않으면 만료된PresignedURL로 이미지를 업로드하기 때문에 업로드 성공을 보장받을 수 없기 때문입니다.✅테스트 케이스
🙏🏻아래와 같이 PR을 리뷰해주세요.