New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP Error 403: Response: {"message": Signature expired} #211
Comments
looking at 20190227T025043Z, it seems that your clock is not in sync. can you run |
Thank you very much for your help. I think I solved this problem but here it rised another issue which it cannot find /dev/device0. I am looking at other issues about this. Thank you very much. #87 |
you can run |
It returns failed to start device monitor pi@raspberrypi:/dev $ gst-device-monitor-1.0 0:00:00.098350248 22169 0xae4c00 WARN default gstdevicemonitor.c:460:gst_device_monitor_start: No filters have been set, will expose all devices found |
can you follow the trouble shooting steps here and see if it helps? https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/install-instructions-linux.md#raspberry-pi-failure-to-load-the-camera-device. Thanks. |
Thank you very much! Now my Kinesis Stream is coming alive! Thanks for your awesome help! |
Hello! I have been setting up kinesis video stream these days but I got these bugs. I searched for the GitHub. It seems like nobody else has such an issue. May you help me? Thanks a lot!
I am currently using raspberry pi and have all below packages installed:
git, cmake, libtool, libtool-bin, automake, bison, g++, pkg-config, flex, openjdk-8-jdk
libssl-dev libcurl4-openssl-dev liblog4cplus-1.1-9 liblog4cplus-dev
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base-apps
gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-tools
gstreamer1.0-omx
then I run ./min-install-script to build the kinesis. Then I ran a simple example
./kinesis_video_gstreamer_sample_app
I got the following logs and errors:
[INFO ][2019-02-27 02:50:43] Using region: us-west-2
[INFO ][2019-02-27 02:50:43] Using aws credentials for Kinesis Video Streams
[INFO ][2019-02-27 02:50:43] No session token was detected.
[INFO ][2019-02-27 02:50:43] Initializing curl.
[INFO ][2019-02-27 02:50:43]
createKinesisVideoClient(): Creating Kinesis Video Client
[INFO ][2019-02-27 02:50:43]
heapInitialize(): Initializing native heap with limit size 134217728, spill ratio 0% and flags 0x00000001
[INFO ][2019-02-27 02:50:43]
heapInitialize(): Creating AIV heap.
[INFO ][2019-02-27 02:50:43]
heapInitialize(): Heap is initialized OK
[DEBUG][2019-02-27 02:50:43] Refreshing credentials. Force refreshing: 0 Now time is: 1551235843309381916 Expiration: 0
[INFO ][2019-02-27 02:50:43] New credentials expiration is 1551238243
[DEBUG][2019-02-27 02:50:43] createDeviceHandler invoked
[INFO ][2019-02-27 02:50:43]
createDeviceResultEvent(): Create device result event.
[DEBUG][2019-02-27 02:50:43] clientReadyHandler invoked
[DEBUG][2019-02-27 02:50:43] Awaiting for the producer to become ready...
[DEBUG][2019-02-27 02:50:43] Kinesis Video producer is Ready.
[DEBUG][2019-02-27 02:50:43] Client is ready
[INFO ][2019-02-27 02:50:43] Creating Kinesis Video Stream KinesisStream
[INFO ][2019-02-27 02:50:43]
createKinesisVideoStream(): Creating Kinesis Video Stream.
[DEBUG][2019-02-27 02:50:43] describeStreamHandler invoked
[DEBUG][2019-02-27 02:50:43] Awaiting for the stream to become ready...
[DEBUG][2019-02-27 02:50:43] Refreshing credentials. Force refreshing: 0 Now time is: 1551235843310716291 Expiration: 0
[WARN ][2019-02-27 02:50:43] HTTP Error 403: Response: {"message":"Signature expired: 20190227T025043Z is now earlier than 20190529T174926Z (20190529T175426Z - 5 min.)"}
Request URL: https://kinesisvideo.us-west-2.amazonaws.com/describeStream
Request Headers:
Authorization: AWS4-HMAC-SHA256 Credential=AKIAZRAZ6SSTLGQDDTZT/20190227/us-west-2/kinesisvideo/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date, Signature=7a483eb3315d1e705475b9466cdf0f8f09705cef8add927209cc1ed305b77c0c
content-type: application/json
host: kinesisvideo.us-west-2.amazonaws.com
user-agent: AWS-SDK-KVS/1.7.9 GCC/6.3.0 Linux/4.14.98-v7+ armv7l
X-Amz-Date: 20190227T025043Z
[DEBUG][2019-02-27 02:50:43] describeStream response: {"message":"Signature expired: 20190227T025043Z is now earlier than 20190529T174926Z (20190529T175426Z - 5 min.)"}
[INFO ][2019-02-27 02:50:43] Describe stream did not find the stream KinesisStream in Kinesis Video (stream will be created)
[INFO ][2019-02-27 02:50:43]
describeStreamResultEvent(): Describe stream result event.
[ERROR][2019-02-27 02:50:43] Submitting event result for stream: 25775809 failed with: 1375731728
[ERROR][2019-02-27 02:50:43] Reporting stream error. Errored timecode: 0 Status: 1375731728
[INFO ][2019-02-27 02:51:13] Freeing Kinesis Video Stream KinesisStream
[INFO ][2019-02-27 02:51:13]
freeKinesisVideoStream(): Freeing Kinesis Video stream.
[DEBUG][2019-02-27 02:51:13] streamClosedHandler invoked for upload handle: 18446744073709551615
[ERROR][2019-02-27 02:51:13] Failed to create Kinesis Video Stream - timed out.
[ERROR][2019-02-27 02:51:13] Failed to initialize kinesis video.
[INFO ][2019-02-27 02:51:13]
freeKinesisVideoClient(): Freeing Kinesis Video Client
[INFO ][2019-02-27 02:51:13]
commonHeapDebugCheckAllocator(): Heap is initialized
[INFO ][2019-02-27 02:51:13]
commonHeapDebugCheckAllocator(): Heap limit: 134217728
[INFO ][2019-02-27 02:51:13]
commonHeapDebugCheckAllocator(): Heap size: 0
[INFO ][2019-02-27 02:51:13]
commonHeapDebugCheckAllocator(): Number of allocations: 0
[INFO ][2019-02-27 02:51:13]
aivHeapDebugCheckAllocator(): Allocated blocks pointer: (nil)
[INFO ][2019-02-27 02:51:13]
aivHeapDebugCheckAllocator(): *******************************************
[INFO ][2019-02-27 02:51:13]
aivHeapDebugCheckAllocator(): *******************************************
[INFO ][2019-02-27 02:51:13]
aivHeapDebugCheckAllocator(): Free blocks pointer: 0x6d9e5008
[INFO ][2019-02-27 02:51:13]
aivHeapDebugCheckAllocator(): *******************************************
[INFO ][2019-02-27 02:51:13]
aivHeapDebugCheckAllocator(): Block: 0x6d9e5008 size: 134217687
[INFO ][2019-02-27 02:51:13]
aivHeapDebugCheckAllocator(): *******************************************
[INFO ][2019-02-27 02:51:13]
heapRelease(): Freeing native heap.
Thank you very much!
The text was updated successfully, but these errors were encountered: