TruncatingBigNumber can not be converted to an String

0

Traceback (most recent call last):
File "PATHTOFILE", line 10, in <module>
shard_it = kinesis.get_shard_iterator("newstream", shard_id, 'AT_TIMESTAMP', timestamp)["ShardIterator"]
File "C:\Python39\lib\site-packages\boto\kinesis\layer1.py", line 425, in get_shard_iterator
return self.make_request(action='GetShardIterator',
File "C:\Python39\lib\site-packages\boto\kinesis\layer1.py", line 877, in make_request
raise exception_class(response.status, response.reason,
boto.exception.JSONResponseError: JSONResponseError: 400 Bad Request
{'__type': 'SerializationException', 'Message': 'class com.amazon.coral.value.json.numbers.TruncatingBigNumber can not be converted to an String'}

I am making a python app that will collect data from kinesis and write it to a file. I want to read data after a certain period of time. so I am using the "AT_TIMESTAMP" in get_shard_iterator() method.
This function will be implemented in lambda.

已提问 3 年前261 查看次数
1 回答
0

Upgrading to Boto3 solved the issue

已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则