- Newest
- Most votes
- Most comments
Hello, This is Jorge and It looks like you are trying understand the reason why you are not getting the correct output from your request. I do recommend you to check the AWS SDK (It seems you are using Java SDK, feel free to confirm that) version you are using and to make sure you are importing the correct Libraries. https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/AmazonKinesisVideoArchivedMediaClient.java
I also encourage you for creating an issue under the GitHub page -> Tab Issues with your error message; https://github.com/aws/aws-sdk-java/issues
Looking forward for your feedback.
Even though the error is misleading, you can solve this by calling the correct endpoint:
client_end = boto3.client('kinesisvideo')
response_end = client_end.get_data_endpoint(
StreamARN=ARN,
APIName='GET_IMAGES'
)
endpoint = response_end['DataEndpoint']
client = boto3.client('kinesis-video-archived-media', endpoint_url=endpoint)
There are two parts to the response. Please print / save the 'Images' response to get Image details / Image Error details.
resp = kvs_archived_media_client.get_images(StreamName=stream_name,
ImageSelectorType='PRODUCER_TIMESTAMP',
StartTimestamp=start_timestamp,
EndTimestamp=end_timestamp,
SamplingInterval=3000,
Format='JPEG')
images = resp['Images']
metadata = resp['ResponseMetadata']
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Hi Jorge, many thanks for your reply. Apologies but I should've mentioned that I am using AWS Python SDK (Boto3) latest version