Python Boto与Amazon Mechanical turk的接口-热门创作
我对amazon和python还不熟悉,所以请原谅,这是一个简单的解决方案。从boto创建命中后,我得到以下错误:Python Boto与Amazon Mechanical turk的接口-热门创作,python,amazon-web-services,boto,mechanicalturk,crowdsourcing,Python,Amazon Web Services,Boto,Mechanicalturk,Crowdsourcing,我对amazon和python还不熟悉,所以请原谅,这是一个简单的解决方案。从boto创建命中后,我得到以下错误: boto.mturk.connection.MTurkRequestError: MTurkRequestError: 200 OK <?xml version="1.0"?> <GetAssignmentsForHITResponse><OperationRequest><RequestId>17449b9f-b1f3-4d54-
boto.mturk.connection.MTurkRequestError: MTurkRequestError: 200 OK
<?xml version="1.0"?>
<GetAssignmentsForHITResponse><OperationRequest><RequestId>17449b9f-b1f3-4d54-bbbd-974210ce1c1b</RequestId><Errors><Error><Code>AWS.BadClaimsSupplied</Code><Message>The specified claims are invalid. Based on your request, your signature should be generated using the following string: ActionGetAssignmentsForHITAWSAccessKeyId*********HITId?PageNumber1PageSize10SignatureVersion1SortDirectionAscendingSortPropertySubmitTimeTimestamp2014-01-06T22:20:05ZVersion2012-03-25. Check to make sure your system clock and timezone is not incorrect. Our current system time: 2014-01-06T22:20:05Z. (1389046806029 s)</Message><Data><Key>CustomerSignature</Key><Value>**************=</Value></Data><Data><Key>StringToSign</Key><Value>ActionGetAssignmentsForHITAWSAccessKeyIdAKIAIYFUA5FGNQKNWUSQHITId?PageNumber1PageSize10SignatureVersion1SortDirectionAscendingSortPropertySubmitTimeTimestamp2014-01-06T22:20:05ZVersion2012-03-25</Value></Data><Data><Key>SystemTime</Key><Value>2014-01-06T22:20:05Z</Value></Data></Error></Errors></OperationRequest></GetAssignmentsForHITResponse>
根据我的理解,问题在于我的系统时钟和amazon系统时钟不一致。在创建命中之前,我尝试同步时钟,但错误仍然存在
注:
这一次,时间完全吻合,但也有过间隔1到3秒的情况!如果有帮助的话,这是我遇到麻烦的crowdforge实现的一部分。你能提供生成此错误的代码吗?我使用的是Django,在界面中生成了点击,因此除了标准库之外没有代码。我从最新版本恢复到1.8d版本,错误消失了。我想新版本与crowdforge不兼容。无论如何谢谢你!什么版本的boto修复了它?