Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectionClosedError for CreateQualificationType #12

Closed
jyp256 opened this issue Feb 29, 2020 · 1 comment
Closed

ConnectionClosedError for CreateQualificationType #12

jyp256 opened this issue Feb 29, 2020 · 1 comment

Comments

@jyp256
Copy link

jyp256 commented Feb 29, 2020

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
Copy link
Author

jyp256 commented Jun 7, 2020

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

@jyp256 jyp256 closed this as completed Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant