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
Create a stream in the Kinesis Video Streams console. There's no need to send media to the stream, a successful API call should return an empty fragment.
Call the Kinesis Video API to retrieve the endpoint and KVS stream arn.
(defkvs (aws/client {:api:kinesisvideo:region"eu-west-1":credentials-provider (cred/profile-credentials-provider"devpl2")}))
; get the arn of the first stream in the KVSs
(defstream-arn
(-> (aws/invoke kvs {:op:ListStreams:request {}})
:StreamInfoList
(first)
:StreamARN))
(defkvs-endpoint (:DataEndpoint (aws/invoke kvs {:op:GetDataEndpoint:request {:APIName"GET_MEDIA":StreamARN stream-arn}})))
;; Create a KV Media client.
(defkvmedia (aws/client {:api:kinesis-video-media:region"eu-west-1":endpoint kvs-endpoint :credentials-provider (cred/profile-credentials-provider"devpl2")}))
I've opened #218 to address the fact that AWS unexpectedly returned an XML response body when this library was expecting a JSON response, resulting in the JSON parsing error you found.
Dependencies
Steps to reproduce
Create a stream in the Kinesis Video Streams console. There's no need to send media to the stream, a successful API call should return an empty fragment.
Call the Kinesis Video API to retrieve the endpoint and KVS stream arn.
Invoke the API.
Stack trace
The invoke method fails with the stack trace. Actually, any call of the :GetMedia operation results in the json error.
The text was updated successfully, but these errors were encountered: