cloudyr / pyMTurkR

A Client for the MTurk Requester API
15 stars 8 forks source link

ConnectionClosedError for CreateQualificationType #12

Closed jyp256 closed 4 years ago

jyp256 commented 4 years ago

Hi. Thanks for the useful package. I am trying out the "CreateQualificationType" command. I have created the Question Form and Answer Keys following your vignette and example command. However, when I run "CreateQualificationType", I get the following error message:

QualificationWithTest <- CreateQualificationType(name = 'My Test', description = 'Qualifies workers to participate in My HITs', status = 'Active', test = TestQuestions, test.duration = 60 * 60, retry.delay = NULL, answerkey = TestKey)

Error in py_call_impl(callable, dots$args, dots$keywords) : ConnectionClosedError: Connection was closed before we received a valid response from endpoint URL: "https://mturk-requester.us-east-1.amazonaws.com/".

Detailed traceback: File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\client.py", line 276, in _api_call return self._make_api_call(operation_name, kwargs) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\client.py", line 573, in _make_api_call operation_model, request_dict, request_context) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\client.py", line 592, in _make_request return self._endpoint.make_request(operation_model, request_dict) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\endpoint.py", line 102, in make_request return self._send_request(request_dict, operation_model) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\endpoint.py", line 137, in _send_request success_response, exception): File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\endpoint.py", line 231, in _needs_retry caught_exception=caught_exception, request_dict=request_dict) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\hooks.py", line 356, in emit return self._emitter.emit(aliased_event_name, kwargs) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\hooks.py", line 228, in emit return self._emit(event_name, kwargs) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\hooks.py", line 211, in _emit response = handler(kwargs) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\retryhandler.py", line 183, in call if self._checker(attempts, response, caught_exception): File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\retryhandler.py", line 251, in call caught_exception) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\retryhandler.py", line 277, in _should_retry return self._checker(attempt_number, response, caught_exception) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\retryhandler.py", line 317, in call caught_exception) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\retryhandler.py", line 223, in call attempt_number, caught_exception) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\retryhandler.py", line 359, in _check_caught_exception raise caught_exception File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\endpoint.py", line 200, in _do_get_response http_response = self._send(request) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\endpoint.py", line 244, in _send return self.http_session.send(request) File "C:\Users\JY\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\httpsession.py", line 294, in send endpoint_url=request.url

Error in CreateQualificationType(name = "My Test", description = "Qualifies workers to participate in My HITs", : Unable to create qualification

Could you please guide me how to get around with this error message? I will be looking forward to hearing from you soon. Thank you!

jyp256 commented 4 years ago

Not a problem with this package particularly. Caused by an error in my code (another package) that kept running without an end.