Python boto3 mturk发送奖金错误

Python boto3 mturk发送奖金错误,python,django,boto3,mechanicalturk,Python,Django,Boto3,Mechanicalturk,当我尝试定期(但不总是)通过Boto3发送奖金时,RequestError出现: Exception Type: RequestError Exception Value: An error occurred (RequestError) when calling the SendBonus operation: This user is not authorized to perform the requested operation. Exception Location: /

当我尝试定期(但不总是)通过Boto3发送奖金时,
RequestError
出现:

Exception Type: RequestError
Exception Value:    
An error occurred (RequestError) when calling the SendBonus operation: 
This user is not authorized to perform the requested operation.  
Exception Location: /Users/chapkovski/mynewotree/lib/python3.5/site-packages/botocore/client.py in _make_api_call, line 615
代码如下:

response = client.send_bonus(
            WorkerId=self.WorkerId,
            BonusAmount=str(form.cleaned_data['bonus_amount']),
            AssignmentId=self.AssignmentId,
            Reason=form.cleaned_data['reason'],
        )
由于它有时有效,似乎每天可以作为奖金发送的金额有一定的上限。我是在沙箱里做的,所以肯定不是资金短缺的问题。还有谁遇到过类似的问题


更新:我发现了错误的诱因:出于一些奇怪的原因,mTurk不允许每个工作人员每天发送超过100美元的邮件。

我发现了错误的来源:出于一些奇怪的原因,mTurk不允许每个工作人员每天发送超过100美元的邮件(至少对于Sandbox是这样的-没有使用“真实”端点进行测试)。

抓住它,请稍等片刻,然后重试。这有点傻,但另一方面,最终的一致性也有这样的缺点。我在一天内给员工发放了超过100美元的奖金