Back
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;}
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?
Your local system time is out of sync with the current time, so synchronizing or setting up your system clock will solve the issue.
Learn how we helped 50,000+ professionals like you !
31k questions
32.8k answers
501 comments
693 users