Skip to content
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

내 PIC 올리기 버튼으로 사진 올린 후 버튼 안 바뀜 #231

Open
sooziini opened this issue Aug 19, 2024 · 3 comments
Open

내 PIC 올리기 버튼으로 사진 올린 후 버튼 안 바뀜 #231

sooziini opened this issue Aug 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@sooziini
Copy link
Collaborator

Overview (Required)

  • 내 PIC 올리기 버튼으로 사진 올린 후 버튼 안 바뀜
@sooziini sooziini self-assigned this Aug 19, 2024
@sooziini
Copy link
Collaborator Author

코드: lifecycleOwner.repeatOnLifecycle(Lifecycle.State.RESUMED)에 getGroupDetail() 로직 추가
결론: Lifecycle.State.RESUMED가 호출되는 부분이 내 PIC 올리기 버튼으로 이미지 업로드하는 것보다 빨라서 소용이 없다.

--> GET http://ec2-43-203-14-157.ap-northeast-2.compute.amazonaws.com/api/v1/files/upload?extension=jpg
2024-08-19 23:13:50.288 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I --> END GET
2024-08-19 23:13:50.289 29389-29389 test com.mashup.gabbangzip.sharedalbum D !!!!!
2024-08-19 23:13:50.290 29389-29529 preferences com.mashup.gabbangzip.sharedalbum D getStringOrNull: key: key_access_token, value: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5IiwidXNlci1pbmZvIjp7ImlkIjo5LCJuaWNrbmFtZSI6IuuwleyImOynhCIsInJvbGVzIjpbIk1FTUJFUiJdfSwiaWF0IjoxNzIzODc5NzA3LCJleHAiOjE3MjY0NzE3MDd9.3yhfF90npUfvo-Slo99gxNQAajMeGal9wV2u5Lprj4c
2024-08-19 23:13:50.292 29389-29389 ViewRootIm...nActivity] com.mashup.gabbangzip.sharedalbum I handleWindowFocusChanged: 1 0 call from android.view.ViewRootImpl.-$$Nest$mhandleWindowFocusChanged:0
2024-08-19 23:13:50.292 29389-29389 ViewRootIm...nActivity] com.mashup.gabbangzip.sharedalbum D mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb40000770ffa59c0}
2024-08-19 23:13:50.293 29389-29389 InputMethodManagerUtils com.mashup.gabbangzip.sharedalbum D startInputInner - Id : 0
2024-08-19 23:13:50.293 29389-29389 InputMethodManager com.mashup.gabbangzip.sharedalbum I startInputInner - IInputMethodManagerGlobalInvoker.startInputOrWindowGainedFocus
2024-08-19 23:13:50.293 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I --> GET http://ec2-43-203-14-157.ap-northeast-2.compute.amazonaws.com/api/v1/groups/13
2024-08-19 23:13:50.293 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I --> END GET
2024-08-19 23:13:50.300 29389-30764 preferences com.mashup.gabbangzip.sharedalbum D getStringOrNull: key: key_access_token, value: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5IiwidXNlci1pbmZvIjp7ImlkIjo5LCJuaWNrbmFtZSI6IuuwleyImOynhCIsInJvbGVzIjpbIk1FTUJFUiJdfSwiaWF0IjoxNzIzODc5NzA3LCJleHAiOjE3MjY0NzE3MDd9.3yhfF90npUfvo-Slo99gxNQAajMeGal9wV2u5Lprj4c
2024-08-19 23:13:50.301 29389-29389 InsetsSourceConsumer com.mashup.gabbangzip.sharedalbum I applyRequestedVisibilityToControl: visible=false, type=ime, host=com.mashup.gabbangzip.sharedalbum/com.mashup.gabbangzip.sharedalbum.presentation.ui.main.MainActivity
2024-08-19 23:13:50.386 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I <-- 200 http://ec2-43-203-14-157.ap-northeast-2.compute.amazonaws.com/api/v1/groups/13 (92ms)
2024-08-19 23:13:50.386 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Server: nginx/1.22.1
2024-08-19 23:13:50.386 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Date: Mon, 19 Aug 2024 14:13:49 GMT
2024-08-19 23:13:50.387 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Content-Type: application/json
2024-08-19 23:13:50.387 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Transfer-Encoding: chunked
2024-08-19 23:13:50.387 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Connection: keep-alive
2024-08-19 23:13:50.387 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I X-Content-Type-Options: nosniff
2024-08-19 23:13:50.387 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I X-XSS-Protection: 0
2024-08-19 23:13:50.387 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Cache-Control: no-cache, no-store, max-age=0, must-revalidate
2024-08-19 23:13:50.388 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Pragma: no-cache
2024-08-19 23:13:50.388 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Expires: 0
2024-08-19 23:13:50.388 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I X-Frame-Options: DENY
2024-08-19 23:13:50.390 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I {"is_success":true,"data":{"id":13,"name":"ㅎㅇ3","keyword":"LITTLE_MOIM","status":"BEFORE_MY_UPLOAD","status_description":"쉿 PIC하는 중","recent_event":{"id":14,"name":"쇼셔","date":"2024-08-19T23:09:28.619652","deadline":"2024-08-20T01:09:30.046756"},"card_front_image_url":"pic/f69b6bc7-b2cd-405f-b8a7-66098348a170.png","card_back_images":null,"history":[]},"error_response":null}
2024-08-19 23:13:50.390 29389-30764 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I <-- END HTTP (392-byte body)
2024-08-19 23:13:50.406 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I <-- 200 http://ec2-43-203-14-157.ap-northeast-2.compute.amazonaws.com/api/v1/files/upload?extension=jpg (117ms)
2024-08-19 23:13:50.407 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Server: nginx/1.22.1
2024-08-19 23:13:50.407 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Date: Mon, 19 Aug 2024 14:13:49 GMT
2024-08-19 23:13:50.407 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Content-Type: application/json
2024-08-19 23:13:50.407 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Transfer-Encoding: chunked
2024-08-19 23:13:50.407 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Connection: keep-alive
2024-08-19 23:13:50.407 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I X-Content-Type-Options: nosniff
2024-08-19 23:13:50.407 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I X-XSS-Protection: 0
2024-08-19 23:13:50.407 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Cache-Control: no-cache, no-store, max-age=0, must-revalidate
2024-08-19 23:13:50.407 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Pragma: no-cache
2024-08-19 23:13:50.407 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Expires: 0
2024-08-19 23:13:50.407 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I X-Frame-Options: DENY
2024-08-19 23:13:50.408 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I {"is_success":true,"data":{"upload_url":"https://pic-api-bucket.s3.ap-northeast-2.amazonaws.com/pic/0d985d1e-c5f2-4074-8b2f-24dbbd8f9b75.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240819T141349Z&X-Amz-SignedHeaders=host&X-Amz-Expires=599&X-Amz-Credential=AKIAW3MED7EATE4UPMEB%2F20240819%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Signature=db09fd36f5398b92740c4025de160fa39028a143294d89b02c258ca940890f62","file_id":"pic/0d985d1e-c5f2-4074-8b2f-24dbbd8f9b75.jpg","url_exp_ts_millis":1724077429069},"error_response":null}
2024-08-19 23:13:50.408 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I <-- END HTTP (527-byte body)
2024-08-19 23:13:50.418 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I --> PUT https://pic-api-bucket.s3.ap-northeast-2.amazonaws.com/pic/0d985d1e-c5f2-4074-8b2f-24dbbd8f9b75.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240819T141349Z&X-Amz-SignedHeaders=host&X-Amz-Expires=599&X-Amz-Credential=AKIAW3MED7EATE4UPMEB%2F20240819%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Signature=db09fd36f5398b92740c4025de160fa39028a143294d89b02c258ca940890f62
2024-08-19 23:13:50.418 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Content-Type: image/jpg
2024-08-19 23:13:50.421 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Content-Length: 609225
2024-08-19 23:13:50.429 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I --> END PUT (binary 609225-byte body omitted)
2024-08-19 23:13:50.449 29389-29549 TrafficStats com.mashup.gabbangzip.sharedalbum D tagSocket(82) with statsTag=0xffffffff, statsUid=-1
2024-08-19 23:13:50.451 29389-30773 TrafficStats com.mashup.gabbangzip.sharedalbum D tagSocket(136) with statsTag=0xffffffff, statsUid=-1
2024-08-19 23:13:50.751 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I <-- 200 OK https://pic-api-bucket.s3.ap-northeast-2.amazonaws.com/pic/0d985d1e-c5f2-4074-8b2f-24dbbd8f9b75.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240819T141349Z&X-Amz-SignedHeaders=host&X-Amz-Expires=599&X-Amz-Credential=AKIAW3MED7EATE4UPMEB%2F20240819%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Signature=db09fd36f5398b92740c4025de160fa39028a143294d89b02c258ca940890f62 (321ms)
2024-08-19 23:13:50.751 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I x-amz-id-2: vZ/QHCjQ0bkuFd3+q6yeB1FuxjZ1ldphKZgx5p2Iep42qAtss015XbHKNeEEcPtV5ofm3qjOqtUkU0BAteU3fcMp3HHs/6sp
2024-08-19 23:13:50.751 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I x-amz-request-id: W1E534HEC51F7W2Y
2024-08-19 23:13:50.751 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Date: Mon, 19 Aug 2024 14:13:50 GMT
2024-08-19 23:13:50.751 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I x-amz-server-side-encryption: AES256
2024-08-19 23:13:50.751 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I ETag: "43bd45c9014270b41d5e29590b9fcb24"
2024-08-19 23:13:50.751 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Server: AmazonS3
2024-08-19 23:13:50.751 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Content-Length: 0
2024-08-19 23:13:50.751 29389-30773 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I <-- END HTTP (0-byte body)
2024-08-19 23:13:50.759 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I --> POST http://ec2-43-203-14-157.ap-northeast-2.compute.amazonaws.com/api/v1/events/images
2024-08-19 23:13:50.759 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Content-Type: application/json; charset=UTF-8
2024-08-19 23:13:50.759 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Content-Length: 77
2024-08-19 23:13:50.760 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I {"event_id":14,"image_urls":["pic/0d985d1e-c5f2-4074-8b2f-24dbbd8f9b75.jpg"]}
2024-08-19 23:13:50.760 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I --> END POST (77-byte body)
2024-08-19 23:13:50.762 29389-29529 preferences com.mashup.gabbangzip.sharedalbum D getStringOrNull: key: key_access_token, value: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5IiwidXNlci1pbmZvIjp7ImlkIjo5LCJuaWNrbmFtZSI6IuuwleyImOynhCIsInJvbGVzIjpbIk1FTUJFUiJdfSwiaWF0IjoxNzIzODc5NzA3LCJleHAiOjE3MjY0NzE3MDd9.3yhfF90npUfvo-Slo99gxNQAajMeGal9wV2u5Lprj4c
2024-08-19 23:13:50.797 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I <-- 200 http://ec2-43-203-14-157.ap-northeast-2.compute.amazonaws.com/api/v1/events/images (36ms)
2024-08-19 23:13:50.797 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Server: nginx/1.22.1
2024-08-19 23:13:50.797 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Date: Mon, 19 Aug 2024 14:13:49 GMT
2024-08-19 23:13:50.798 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Content-Type: application/json
2024-08-19 23:13:50.798 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Transfer-Encoding: chunked
2024-08-19 23:13:50.798 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Connection: keep-alive
2024-08-19 23:13:50.798 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I X-Content-Type-Options: nosniff
2024-08-19 23:13:50.798 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I X-XSS-Protection: 0
2024-08-19 23:13:50.798 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Cache-Control: no-cache, no-store, max-age=0, must-revalidate
2024-08-19 23:13:50.798 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Pragma: no-cache
2024-08-19 23:13:50.798 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I Expires: 0
2024-08-19 23:13:50.798 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I X-Frame-Options: DENY
2024-08-19 23:13:50.799 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I {"is_success":true,"data":{"event_id":14},"error_response":null}
2024-08-19 23:13:50.799 29389-29529 okhttp.OkHttpClient com.mashup.gabbangzip.sharedalbum I <-- END HTTP (64-byte body)
2024-08-19 23:13:50.801 29389-29389 MainViewModel com.mashup.gabbangzip.sharedalbum D 내 PIC 올리기 성공

@sooziini sooziini added the bug Something isn't working label Aug 19, 2024
@oreocube
Copy link
Member

확실하게 하려면 픽올리기 성공하면 명시적으로 호출 한번 더 하도록 하거나
좀 편하게(?) 하려면 pull to refresh 추가하는 방법도 있을듯..

@JeonK1
Copy link
Collaborator

JeonK1 commented Aug 20, 2024

둘 다 만들면 좋을지두?!

@JeonK1 JeonK1 added ready ready to develop and removed ready ready to develop labels Sep 20, 2024
@sooziini sooziini removed their assignment Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants