amazon-kinesis

python – 'utf-8' codec can't decode bytes in position 0-2: invalid continuation byte

python – 'utf-8' codec can't decode bytes in position 0-2: invalid continuation byte Question: I’m trying to decode the below from an aws kinesis data stream using aws lambda, but I keep getting a "’utf-8’** codec can’t decode bytes in position 0-2: invalid continuation byte" error x = b’xf3x89x9axc2n$dad568a5-6305-481c-b6f1-f8338cc127dfn$3d57f33a-d681-467b-bb82-89c0d77e2621n$3ade7757-3df4-41ec-bdc8-52a27449c420n$a0a59a4e-02f5-462d-8c3e-50030145cf17x1ax83x01x08x00x1ax7f{ "window_start": "2022-12-30 13:25:00","window_end": "2022-12-30 13:35:00","player_id": 2004,"bonus_stake": …

Total answers: 1

Amazon Kinesis Video GetMedia/PutMedia

Amazon Kinesis Video GetMedia/PutMedia Question: I used python 3.6 and I want to post video stream to aws kinesis with API. I used python aws client to create stream and GetDataEndPoint but when I want to post my data with my custom request (PutMedia doesn’t include in python client actually), I get an error Unable …

Total answers: 2

Why am I getting "Rate Exceeded" errors for this code in Amazon Kinesis

Why am I getting "Rate Exceeded" errors for this code in Amazon Kinesis Question: For the following code, I’m getting “Rate exceeded for shard…” errors. from boto import kinesis import time kinesis = kinesis.connect_to_region(‘us-east-1’) response = kinesis.describe_stream(‘BenTest’) if response[‘StreamDescription’][‘StreamStatus’] == ‘ACTIVE’: print ‘[x] Stream is active’ shards = response[‘StreamDescription’][‘Shards’] for shard in shards: shard_id = …

Total answers: 1