且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在使用Amazon拉实例时出现400错误的请求

更新时间:2022-03-19 05:17:29

boto(或任何其他AWS客户端库)发出的每个请求均经过加密签名,并带有与之关联的时间戳(通常是请求中的Date标头).时间戳必须与亚马逊当前时间的想法合理地相吻合,通常在15分钟之内.如果时间戳不在此可接受的时间范围内,您将收到这样的错误.

Each request made by boto (or any other AWS client library) is cryptographically signed and has a timestamp associated with it (usually the Date header in the request). The timestamps have to be reasonably close, usually within 15 minutes, of Amazon's idea of the current time. If the timestamp is outside this acceptable window, you will receive an error like this.

因此,简单的答案是检查客户端计算机上的系统时间.看来不正确.

So, the short answer is to check the system time on the client machine. It appears to be inaccurate.