S3错误:请求时间和当前时间相差太大 [英] S3 Error: The difference between the request time and the current time is too large

查看:12
本文介绍了S3错误:请求时间和当前时间相差太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在调用方法amazons3.ListObjects时出现请求时间与当前时间相差过大的错误

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;
}

它可能是什么?

推荐答案

您本地机器上的时间与当前时间不同步.同步您的系统时钟,问题就会消失.

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.

这篇关于S3错误:请求时间和当前时间相差太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆