반응형

s3에 파일을 올리던 도중  RequestTimeTooSkewed error 이라는 에러가 났다.

이 에러에 대한 원인을 확인하고 문제를 해결해보자.

 

원인

https://docs.aws.amazon.com/ko_kr/AmazonS3/latest/API/ErrorResponses.html

 

Error Responses - Amazon Simple Storage Service

SOAP support over HTTP is deprecated, but it is still available over HTTPS. New Amazon S3 features will not be supported for SOAP. We recommend that you use either the REST API or the AWS SDKs.

docs.aws.amazon.com

AWS 공식문서에서 찾아보니 원인은 The difference between the request time and the server's time is too large. 이라고 나와있었다. 그래서 업로드 한 컴퓨터의 시간을 확인해보니 한참 뒤의 미래로 설정되어 있었다.

 

스케줄러 관련으로 컴퓨터의 시간을 건드리고 있었는데 이 때 미래 시간으로 설정한 상태에서 서버를 실행시켰기 때문이였다.

 

해결

서버를 실행한 컴퓨터의 시간을 원래대로 되돌리고 요청을 보내니 성공했다.

반응형
얼은펭귄