amazon-s3

S3 Error: The difference between the request time and the current time is too large


I have error The difference between the request time and the current time is too large when call method amazons3.ListObjects

ListObjectsRequest request = new ListObjectsRequest() {
    BucketName = BucketName, Prefix = fullKey 
}; 
using (ListObjectsResponse response = s3Client.ListObjects(request))
{
    bool result = response.S3Objects.Count > 0;

    return result;
}

What it could be?


Solution

  • The time on your local box is out of sync with the current time. Sync up your system clock and the problem will go away.