Giter Club home page Giter Club logo

Comments (7)

MushMal avatar MushMal commented on July 24, 2024 2

This still looks like an issue with your credentials.

  • Are you using temporary credentials? If so, you will need to specify the session token too
  • Are your temp credentials expired?
  • Do you have the appropriate rights setup?

from amazon-kinesis-video-streams-producer-sdk-cpp.

MushMal avatar MushMal commented on July 24, 2024

@efflorez your security credentials might be missing or invalid. The test application gets the credentials through the environment variables. Here is the relevant info from the Readme.md:

Define AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables with the AWS access key id and secret key: export AWS_ACCESS_KEY_ID={AccessKeyId} export AWS_SECRET_ACCESS_KEY={SecretAccessKey}

optionally, set AWS_SESSION_TOKEN if integrating with temporary token and AWS_DEFAULT_REGION for the region other than us-west-2

Please let me know whether this works.

However, if you have specified your credentials properly and still have auth issues then please take a look at the credential rights in the IAM policy console and make sure you have the right settings there.

from amazon-kinesis-video-streams-producer-sdk-cpp.

efflorez avatar efflorez commented on July 24, 2024

thanks for your answer,now i get this issue , i think that there are a request problem

2018-01-12 10:23:07 [139687916152640] DEBUG - Awaiting for the stream to become ready...
2018-01-12 10:23:07 [139687916152640] INFO - Refreshing credentials. Force refreshing: 0 Now time is: 4984 Expiration: 0
2018-01-12 10:23:07 [139687715264256] ERROR - curl perform failed for url https://kinesisvideo.us-east-1.amazonaws.com/describeStream with result Timeout was reached: Resolving timed out after 5516 milliseconds
2018-01-12 10:23:12 [139687715264256] WARN - HTTP Error 0: Response: 
Request URL: https://kinesisvideo.us-east-1.amazonaws.com/describeStream
Request Headers:
    Authorization: AWS4-HMAC-SHA256 Credential=AKIAJWJGEQVYE2XKA7BA/20180112/us-east-1/kinesisvideo/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=798aba43ff5845ec7acb7eb1f6e94dc00d0ac3528bd9d770a3a74b2c3f85fbe9
    content-type: application/json
    host: kinesisvideo.us-east-1.amazonaws.com
    X-Amz-Date: 20180112T152307Z
2018-01-12 10:23:12 [139687715264256] DEBUG - describeStream response: 
2018-01-12 10:23:12 [139687715264256] INFO - Describe stream did not find the stream ebenezer in Kinesis Video (stream will be created)
2018-01-12 10:23:12 [139687715264256] 
describeStreamResultEvent(): Describe stream result event.DEBUG - describeStreamHandler invoked
2018-01-12 10:23:12 [139687715264256] INFO - Refreshing credentials. Force refreshing: 0 Now time is: 4990 Expiration: 0

from amazon-kinesis-video-streams-producer-sdk-cpp.

efflorez avatar efflorez commented on July 24, 2024

thanks , wich polices should be active ? i have the following ----AmazonKinesisVideoStreamsFullAccess-----AmazonEC2FullAccess
Also i created other key id and setting panel says "2018-01-12 16:33 EST with kinesisvideo in us-east-1" , so i think that i'am using it

from amazon-kinesis-video-streams-producer-sdk-cpp.

MushMal avatar MushMal commented on July 24, 2024

@efflorez, from what I see you have a timeout:
2018-01-12 10:23:07 [139687715264256] ERROR - curl perform failed for url https://kinesisvideo.us-east-1.amazonaws.com/describeStream with result Timeout was reached: Resolving timed out after 5516 milliseconds
2018-01-12 10:23:12 [139687715264256] WARN - HTTP Error 0: Response:
Request URL: https://kinesisvideo.us-east-1.amazonaws.com/describeStream
Request Headers:
Authorization: AWS4-HMAC-SHA256 Credential=AKIAJWJGEQVYE2XKA7BA/20180112/us-east-1/kinesisvideo/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=798aba43ff5845ec7acb7eb1f6e94dc00d0ac3528bd9d770a3a74b2c3f85fbe9
content-type: application/json
host: kinesisvideo.us-east-1.amazonaws.com
X-Amz-Date: 20180112T152307Z

The SDK is configured to timeout after ~5 seconds of no response. Can you check you have external gateway configured properly? Do you have internet access on the device? Are the ports enabled (443 port for standard https)?

from amazon-kinesis-video-streams-producer-sdk-cpp.

efflorez avatar efflorez commented on July 24, 2024

i test it on raspberry pi and it works good (big latency and the cores was on the top ) but in my laptop i couldnt connect

from amazon-kinesis-video-streams-producer-sdk-cpp.

iaashish avatar iaashish commented on July 24, 2024

@MushMal - I'm using a temporary token us explanation has helped me

from amazon-kinesis-video-streams-producer-sdk-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.