You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I am using "ExtendHIT" function. I tried to use a vector of HIT ids but keep getting an error message. I tried transforming the vector in various ways like "as.character()", etc. Still no luck.
When I feed in only one HIT ID, it works. However, a vector of HITs like the one below doesn't work.
So, I am just looping over each HIT id in a vector. However, I would like to just put a vector in the code as suggested in the package manual. Could you please help me with some solution? Thanks!
Hi. I am using "ExtendHIT" function. I tried to use a vector of HIT ids but keep getting an error message. I tried transforming the vector in various ways like "as.character()", etc. Still no luck.
When I feed in only one HIT ID, it works. However, a vector of HITs like the one below doesn't work.
So, I am just looping over each HIT id in a vector. However, I would like to just put a vector in the code as suggested in the package manual. Could you please help me with some solution? Thanks!
ExtendHIT(hit = as.character(c("371QPA24C1NJQUPVEKWBBRSWE3H1TJ", "3FCO4VKOZ3CVCXM0D5OPDFJ8EFU7EW")), add.seconds = seconds(days=7))
`Error in py_call_impl(callable, dots$args, dots$keywords) :
ParamValidationError: Parameter validation failed:
Invalid type for parameter HITId, value: ['371QPA24C1NJQUPVEKWBBRSWE3H1TJ', '3FCO4VKOZ3CVCXM0D5OPDFJ8EFU7EW'], type: <class 'list'>, valid types: <class 'str'>
Detailed traceback:
File "C:\Users\Ju Yeon Park\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\Ju Yeon Park\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\client.py", line 559, in _make_api_call
api_params, operation_model, context=request_context)
File "C:\Users\Ju Yeon Park\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\client.py", line 607, in _convert_to_request_dict
api_params, operation_model)
File "C:\Users\Ju Yeon Park\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\validate.py", line 297, in serialize_to_request
raise ParamValidationError(report=report.generate_report())
Error: No HITs Retrieved
Error in py_call_impl(callable, dots$args, dots$keywords) :
ParamValidationError: Parameter validation failed:
Invalid type for parameter ExpireAt, value: NA, type: <class 'str'>, valid types: <class 'datetime.datetime'>, timestamp-string
Detailed traceback:
File "C:\Users\Ju Yeon Park\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\Ju Yeon Park\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\client.py", line 559, in _make_api_call
api_params, operation_model, context=request_context)
File "C:\Users\Ju Yeon Park\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\client.py", line 607, in _convert_to_request_dict
api_params, operation_model)
File "C:\Users\Ju Yeon Park\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\validate.py", line 297, in serialize_to_request
raise ParamValidationError(report=report.generate_report())
Error in py_call_impl(callable, dots$args, dots$keywords) :
ParamValidationError: Parameter validation failed:
Invalid type for parameter ExpireAt, value: NA, type: <class 'str'>, valid types: <class 'datetime.datetime'>, timestamp-string
Detailed traceback:
File "C:\Users\Ju Yeon Park\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\Ju Yeon Park\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\client.py", line 559, in _make_api_call
api_params, operation_model, context=request_context)
File "C:\Users\Ju Yeon Park\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\client.py", line 607, in _convert_to_request_dict
api_params, operation_model)
File "C:\Users\Ju Yeon Park\AppData\Local\Programs\Python\Python37\lib\site-packages\botocore\validate.py", line 297, in serialize_to_request
raise ParamValidationError(report=report.generate_report())
In addition: Warning message:
In ExtendHIT(hit = as.character(c("371QPA24C1NJQUPVEKWBBRSWE3H1TJ", :
Invalid Request
Warning message:
In ExtendHIT(hit = as.character(c("371QPA24C1NJQUPVEKWBBRSWE3H1TJ", :
Invalid Request`
The text was updated successfully, but these errors were encountered: