How to use Turkit for MTURK?

喜夏-厌秋 提交于 2019-12-08 04:42:51

问题


I am trying to use the package Turkit on windows7 and just trying to get the sample code given in the package working.

print("Hello World")
print("Your balance is: " + mturk.getAccountBalance())

And I have specified my awsAccessKeyID and awsSecretAccessKey in properties file.

But I got the following error:

org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: ERROR 500: aws:Client.NonSecureRequestThis request must be made over a secure channel. You must use 'https' rather than 'http'.72aff2a1-4ba4-40a6-beb3-b65deafd3945

I am thinking there might be something wrong with my internet connection setting or I didn't install something that is required by this package. Could anyone help me figure out what's going wrong here?

Thanks!


回答1:


I think the problem is as Isaac said - they started enforcing "HTTPS" requests, so until they push out a fix (aka use HTTPS) in order to use it you'd have to download the source code and change it there. You can download the source code here.

Unless you need it shortly, I'd wait for fix (or contact them and ask them to fix it sooner)




回答2:


The Mechanical Turk team recently started enforcing that all API calls must be made over "https" instead of "http" for security reasons. You just need to change the request URL to "https" and it should work.

Cheers, Isaac



来源:https://stackoverflow.com/questions/9526840/how-to-use-turkit-for-mturk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!