Skip to content
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

Kvssink no credentials found error message #1228

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

sirknightj
Copy link
Contributor

Issue #, if available:

Background:
When you run kvssink, and it was not able to find any credentials, it fails with this code:

Failed to init kvs producer. Error: Unable to create Rotating Credential provider. Error status: 0x15000022
Which is:

  • STATUS_FILE_CREDENTIAL_PROVIDER_OPEN_FILE_FAILED

It will fallback to the file credentials and fail: https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/examples-gstreamer-plugin-parameters.html#credentials-to-kvssink

Logic should be revised to have a better error message.

Description of changes:

  • Change to have a better error message.
  • In kvssink, check if the credentials file exists. If so, try the file credentials provider. Otherwise, print a proper error.

Testing with gst-parse-launch-1.0:

[INFO ] [05-02-2025 23:15:31:074.995 UTC] Logger config being used: ../kvs_log_configuration
ERROR: from element /GstPipeline:pipeline0/GstKvsSink:kvssink0: Could not initialize supporting library.
Additional debug info:
/Users/me/Downloads/amazon-kinesis-video-streams-producer-sdk-cpp/src/gstreamer/gstkvssink.cpp(1642): gst_kvs_sink_change_state (): /GstPipeline:pipeline0/GstKvsSink:kvssink0:
Failed to init kvs producer. Error: Could not find any AWS credentials!
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sirknightj sirknightj added gstreamer Changes to kvssink or the kvssink samples 3.4.3 labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.4.3 gstreamer Changes to kvssink or the kvssink samples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant