Boto接口到Amazon Mechanical turk Hit creation

2024-09-27 00:17:38 发布

您现在位置:Python中文网/ 问答频道 /正文

我不熟悉amazon和python,所以请原谅,这是一个简单的解决方案。从boto创建命中后,我得到以下错误:

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>

据我所知,问题是我的系统时钟和亚马逊系统时钟不一致。我尝试在创建命中之前同步时钟,但错误仍然存在。在

注意事项: 这一次时间完全匹配,但也有过相隔1到3秒的情况!如果这有帮助的话,这是我在crowdforge实现中遇到的一部分。在


Tags: keymessageyourdatavalue错误codeerror

热门问题