CAPSTONE369 / GSC_ZEF_SERVER

🍖 ZEF-SERVER | 2022 Ewha Capstone Contest 2nd Prize
MIT License
0 stars 0 forks source link

S3 버킷 통해 이미지 업로드 #4

Closed sunnyineverywhere closed 1 year ago

sunnyineverywhere commented 1 year ago

TO-DOs

Goals

Etc

yhjune commented 1 year ago

postman 요청시 401 unauthorized 에러가 계속 납니다

원래는 403 Forbidden Error로 S3 버킷 설정 문제인 줄 알았습니다. 근데 get/put/deleteObject 열어두고 다시 요청하니까 401 이 뜸 S3 엑세스 키 문제인가 싶어서 해당 부분도 확인해 봤는데 이상 없었음

시도해본 해결 방안 https://community.postman.com/t/im-getting-401-unauthorized-error/38820

예상 문제점 S3 버킷 설정...?


해결

Spring Config 문제였음

yhjune commented 1 year ago

s3 연동 중 Endpoint does not contain a valid host name: null => 지역 버킷이름도 다 맞는데 왜 틀리는지 이유를 알 수 없었음 전체 종료 후 다시 하니까 되는데 이유가...?