Kinesis return wrong error when using PRODUCER_TIMESTAMP for end timestamp that is outside of retention period

0

** I'm trying to retrieve a video stream from Kinesis that is outside of the retention period** either by using KinesisVideoArchivedMedia or GetClip or event through the Kinesis download media clip UI (which uses the getClip API).

when I'm using SERVER_TIMESTAMP I get the correct error message which is:

InvalidArgumentException End timestamp XXXXXXXXXXX is outside of the stream retention period.

However when I'm trying to get the same stream using PRODUCER_TIMESTAMP I get the wrong error: ResourceNotFoundException No fragments found in the stream for the clip request.

although the video existed before it reached the retention period, I wish to get InvalidArgumentException error so I could present a proper error message to my clients. when using PRODUCER_TIMESTAMP I have no way to tell whether the video never existed or it is reached the retention period.

Is there any other way to solve this issue and continue using PRODUCER_TIMESTAMP

Thank you.

gefragt vor 2 Jahren82 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen