Open devneotec opened 1 year ago
What sample are you running to get this error? Can you provide a minimal code sample?
I don't have a standalone code, but here is the relevant part of the code.
I retrieved the GetMedia endpoint before making this call to create the kinesis_video_mediaclient. This code functions if I do not push the video stream from gstreamer at the same time:
GetMediaRequest get_media_request{};
get_media_request.SetStreamARN(stream_arn_);
StartSelector start_selector{};
start_selector.SetStartSelectorType(StartStreamOffset::Earliest)
get_media_request.SetStartSelector(start_selector);
auto outcome = kinesis_video_media_client_->GetMedia(get_media_request);
if (!outcome.IsSuccess())
{
// Log and return
}
I also ran with the debug traces and I see that the CurlHttpClient never returns but it continues to pull data from it. Is there any way to specify the max size of data to be fetched and successfully return? I have already tried to update the request timeout, connection timeout but none of those have worked so far.
Here is the log for reference (truncated the middle part where curl traces are repeating and fetching data). I cancel eventually, so you will see those traces at the end. :
I20221116 22:26:01.151041 241787 ] Aws_Init_Cleanup Initiate AWS SDK for C++ with Version:1.9.264
I20221116 22:26:01.151098 241787 ] [DEBUG] FileSystemUtils Environment value for variable HOME is /home/devuser
I20221116 22:26:01.151109 241787 ] [DEBUG] FileSystemUtils Home directory is missing the final / appending one to normalize
I20221116 22:26:01.151118 241787 ] [DEBUG] FileSystemUtils Final Home Directory is /home/devuser/
I20221116 22:26:01.151126 241787 ] Aws::Config::AWSConfigFileProfileConfigLoader Initializing config loader against fileName /home/devuser/.aws/credentials and using profilePrefix = 0
I20221116 22:26:01.151134 241787 ] [DEBUG] FileSystemUtils Environment value for variable HOME is /home/devuser
I20221116 22:26:01.151144 241787 ] [DEBUG] FileSystemUtils Home directory is missing the final / appending one to normalize
I20221116 22:26:01.151150 241787 ] [DEBUG] FileSystemUtils Final Home Directory is /home/devuser/
I20221116 22:26:01.151158 241787 ] Aws::Config::AWSConfigFileProfileConfigLoader Initializing config loader against fileName /home/devuser/.aws/config and using profilePrefix = 1
I20221116 22:26:01.151166 241787 ] [DEBUG] FileSystemUtils Environment value for variable HOME is /home/devuser
I20221116 22:26:01.151173 241787 ] [DEBUG] FileSystemUtils Home directory is missing the final / appending one to normalize
I20221116 22:26:01.151181 241787 ] [DEBUG] FileSystemUtils Final Home Directory is /home/devuser/
I20221116 22:26:01.152153 241787 ] [DEBUG] Aws::Config::ConfigFileProfileFSM found profile default
I20221116 22:26:01.152190 241787 ] [DEBUG] Aws::Config::ConfigFileProfileFSM found access key *********
I20221116 22:26:01.152222 241787 ] Aws::Config::AWSProfileConfigLoader Successfully reloaded configuration.
I20221116 22:26:01.152236 241787 ] [DEBUG] FileSystemUtils Environment value for variable HOME is /home/devuser
I20221116 22:26:01.152244 241787 ] [DEBUG] FileSystemUtils Home directory is missing the final / appending one to normalize
I20221116 22:26:01.152252 241787 ] [DEBUG] FileSystemUtils Final Home Directory is /home/devuser/
I20221116 22:26:01.152395 241787 ] [DEBUG] Aws::Config::ConfigFileProfileFSM found profile default
I20221116 22:26:01.152411 241787 ] [DEBUG] Aws::Config::ConfigFileProfileFSM found region us-west-2
I20221116 22:26:01.152428 241787 ] Aws::Config::AWSProfileConfigLoader Successfully reloaded configuration.
I20221116 22:26:01.152446 241787 ] event-loop id=0x30002b0: Initializing edge-triggered epoll
I20221116 22:26:01.152468 241787 ] event-loop id=0x30002b0: Using eventfd for cross-thread notifications.
I20221116 22:26:01.152483 241787 ] event-loop id=0x30002b0: Starting event-loop thread.
I20221116 22:26:01.152542 241787 ] event-loop id=0x31e01b0: Initializing edge-triggered epoll
I20221116 22:26:01.152559 241787 ] event-loop id=0x31e01b0: Using eventfd for cross-thread notifications.
I20221116 22:26:01.152568 241787 ] event-loop id=0x31e01b0: Starting event-loop thread.
I20221116 22:26:01.152616 241787 ] event-loop id=0x31e8490: Initializing edge-triggered epoll
I20221116 22:26:01.152606 241815 ] event-loop id=0x30002b0: main loop started
I20221116 22:26:01.152639 241787 ] event-loop id=0x31e8490: Using eventfd for cross-thread notifications.
I20221116 22:26:01.152695 241787 ] event-loop id=0x31e8490: Starting event-loop thread.
I20221116 22:26:01.152690 241815 ] event-loop id=0x30002b0: default timeout 100000, and max events to process per tick 100
I20221116 22:26:01.152683 241816 ] event-loop id=0x31e01b0: main loop started
I20221116 22:26:01.152736 241787 ] event-loop id=0x31e8520: Initializing edge-triggered epoll
I20221116 22:26:01.152757 241817 ] event-loop id=0x31e8490: main loop started
I20221116 22:26:01.152760 241816 ] event-loop id=0x31e01b0: default timeout 100000, and max events to process per tick 100
I20221116 22:26:01.152765 241787 ] event-loop id=0x31e8520: Using eventfd for cross-thread notifications.
I20221116 22:26:01.152789 241817 ] event-loop id=0x31e8490: default timeout 100000, and max events to process per tick 100
I20221116 22:26:01.152798 241787 ] event-loop id=0x31e8520: Starting event-loop thread.
I20221116 22:26:01.152845 241787 ] event-loop id=0x31e24f0: Initializing edge-triggered epoll
I20221116 22:26:01.152860 241787 ] event-loop id=0x31e24f0: Using eventfd for cross-thread notifications.
I20221116 22:26:01.152873 241787 ] event-loop id=0x31e24f0: Starting event-loop thread.
I20221116 22:26:01.152890 241818 ] event-loop id=0x31e8520: main loop started
I20221116 22:26:01.152930 241819 ] event-loop id=0x31e24f0: main loop started
I20221116 22:26:01.152913 241787 ] event-loop id=0x31e3730: Initializing edge-triggered epoll
I20221116 22:26:01.152947 241818 ] event-loop id=0x31e8520: default timeout 100000, and max events to process per tick 100
I20221116 22:26:01.152956 241787 ] event-loop id=0x31e3730: Using eventfd for cross-thread notifications.
I20221116 22:26:01.152949 241819 ] event-loop id=0x31e24f0: default timeout 100000, and max events to process per tick 100
I20221116 22:26:01.152984 241787 ] event-loop id=0x31e3730: Starting event-loop thread.
I20221116 22:26:01.153041 241787 ] event-loop id=0x31e4970: Initializing edge-triggered epoll
I20221116 22:26:01.153056 241787 ] event-loop id=0x31e4970: Using eventfd for cross-thread notifications.
I20221116 22:26:01.153074 241787 ] event-loop id=0x31e4970: Starting event-loop thread.
I20221116 22:26:01.153110 241820 ] event-loop id=0x31e3730: main loop started
I20221116 22:26:01.153141 241821 ] event-loop id=0x31e4970: main loop started
I20221116 22:26:01.153124 241787 ] event-loop id=0x31e5bb0: Initializing edge-triggered epoll
I20221116 22:26:01.153159 241820 ] event-loop id=0x31e3730: default timeout 100000, and max events to process per tick 100
I20221116 22:26:01.153179 241787 ] event-loop id=0x31e5bb0: Using eventfd for cross-thread notifications.
I20221116 22:26:01.153172 241821 ] event-loop id=0x31e4970: default timeout 100000, and max events to process per tick 100
I20221116 22:26:01.153199 241787 ] event-loop id=0x31e5bb0: Starting event-loop thread.
I20221116 22:26:01.153257 241787 ] dns id=0x31ea6c0: Initializing default host resolver with 8 max host entries.
I20221116 22:26:01.153271 241822 ] event-loop id=0x31e5bb0: main loop started
I20221116 22:26:01.153293 241787 ] channel-bootstrap id=0x31eaa00: Initializing client bootstrap with event-loop group 0x2629600
I20221116 22:26:01.153298 241822 ] event-loop id=0x31e5bb0: default timeout 100000, and max events to process per tick 100
I20221116 22:26:01.159346 241787 ] CurlHttpClient Initializing Curl library with version: 7.68.0, ssl version: OpenSSL/1.1.1f
I20221116 22:26:01.160642 241787 ] EC2MetadataClient Using IMDS endpoint: http://169.254.169.254
I20221116 22:26:01.160678 241787 ] [DEBUG] ClientConfiguration ClientConfiguration will use SDK Auto Resolved profile: [default] if not specified by users.
[0;33mW20221116 22:26:01.160701 241787 ] ClientConfiguration Retry Strategy will use the default max attempts.
[mI20221116 22:26:01.160722 241787 ] EC2MetadataClient Creating AWSHttpResourceClient with max connections 2 and scheme http
I20221116 22:26:01.160737 241787 ] CurlHandleContainer Initializing CurlHandleContainer with size 2
I20221116 22:26:01.160774 241787 ] [DEBUG] ClientConfiguration ClientConfiguration will use SDK Auto Resolved profile: [default] if not specified by users.
[0;33mW20221116 22:26:01.160791 241787 ] ClientConfiguration Retry Strategy will use the default max attempts.
[mI20221116 22:26:01.160811 241787 ] [DEBUG] FileSystemUtils Environment value for variable HOME is /home/devuser
I20221116 22:26:01.160825 241787 ] [DEBUG] FileSystemUtils Home directory is missing the final / appending one to normalize
I20221116 22:26:01.160833 241787 ] [DEBUG] FileSystemUtils Final Home Directory is /home/devuser/
I20221116 22:26:01.160846 241787 ] Aws::Config::AWSConfigFileProfileConfigLoader Initializing config loader against fileName /home/devuser/.aws/credentials and using profilePrefix = 0
I20221116 22:26:01.160858 241787 ] [DEBUG] FileSystemUtils Environment value for variable HOME is /home/devuser
I20221116 22:26:01.160882 241787 ] [DEBUG] FileSystemUtils Home directory is missing the final / appending one to normalize
I20221116 22:26:01.160902 241787 ] [DEBUG] FileSystemUtils Final Home Directory is /home/devuser/
I20221116 22:26:01.160915 241787 ] [DEBUG] FileSystemUtils Environment value for variable HOME is /home/devuser
I20221116 22:26:01.160956 241787 ] [DEBUG] FileSystemUtils Home directory is missing the final / appending one to normalize
I20221116 22:26:01.160974 241787 ] [DEBUG] FileSystemUtils Final Home Directory is /home/devuser/
I20221116 22:26:01.160988 241787 ] ProfileConfigFileAWSCredentialsProvider Setting provider to read credentials from /home/devuser/.aws/credentials for credentials file and /home/devuser/.aws/config for the config file , for use with profile default
I20221116 22:26:01.161005 241787 ] ProcessCredentialsProvider Setting process credentials provider to read config from default
[0;33mW20221116 22:26:01.161026 241787 ] STSAssumeRoleWithWebIdentityCredentialsProvider Token file must be specified to use STS AssumeRole web identity creds provider.
[mI20221116 22:26:01.161054 241787 ] SSOCredentialsProvider Setting sso credentials provider to read config from default
I20221116 22:26:01.161072 241787 ] [DEBUG] DefaultAWSCredentialsProviderChain The environment variable value AWS_CONTAINER_CREDENTIALS_RELATIVE_URI is
I20221116 22:26:01.161088 241787 ] [DEBUG] DefaultAWSCredentialsProviderChain The environment variable value AWS_CONTAINER_CREDENTIALS_FULL_URI is
I20221116 22:26:01.161105 241787 ] [DEBUG] DefaultAWSCredentialsProviderChain The environment variable value AWS_EC2_METADATA_DISABLED is
I20221116 22:26:01.161123 241787 ] InstanceProfileCredentialsProvider Creating Instance with default EC2MetadataClient and refresh rate 300000
I20221116 22:26:01.161149 241787 ] DefaultAWSCredentialsProviderChain Added EC2 metadata service credentials provider to the provider chain.
I20221116 22:26:01.161181 241787 ] [DEBUG] EnvironmentAWSCredentialsProvider Found credential in environment with access key id ************
I20221116 22:26:01.161198 241787 ] EnvironmentAWSCredentialsProvider Found secret key
I20221116 22:26:01.161239 241787 ] CurlHandleContainer Initializing CurlHandleContainer with size 25
I20221116 22:26:01.161501 241823 ] [DEBUG] EnvironmentAWSCredentialsProvider Found credential in environment with access key id **************
I20221116 22:26:01.161537 241823 ] EnvironmentAWSCredentialsProvider Found secret key
I20221116 22:26:01.161559 241823 ] [DEBUG] AWSAuthV4Signer Calculated sha256 eb78204f6421c299836fac2073ec4b3b18c5d59f2e9ed74ad5125e3658d5a553 for payload.
I20221116 22:26:01.161638 241823 ] [DEBUG] AWSAuthV4Signer Canonical Header String: amz-sdk-invocation-id:20F8E56A-2C0A-47B0-9E78-C51373BE6653
amz-sdk-request:attempt=1
content-length:132
content-type:application/json
host:kinesisvideo.us-west-2.amazonaws.com
x-amz-api-version:2017-09-30
x-amz-content-sha256:eb78204f6421c299836fac2073ec4b3b18c5d59f2e9ed74ad5125e3658d5a553
x-amz-date:20221117T062601Z
I20221116 22:26:01.161659 241823 ] [DEBUG] AWSAuthV4Signer Signed Headers value:amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date
I20221116 22:26:01.161692 241823 ] [DEBUG] AWSAuthV4Signer Canonical Request String: POST
/getDataEndpoint
amz-sdk-invocation-id:20F8E56A-2C0A-47B0-9E78-C51373BE6653
amz-sdk-request:attempt=1
content-length:132
content-type:application/json
host:kinesisvideo.us-west-2.amazonaws.com
x-amz-api-version:2017-09-30
x-amz-content-sha256:eb78204f6421c299836fac2073ec4b3b18c5d59f2e9ed74ad5125e3658d5a553
x-amz-date:20221117T062601Z
amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date
eb78204f6421c299836fac2073ec4b3b18c5d59f2e9ed74ad5125e3658d5a553
I20221116 22:26:01.161731 241823 ] [DEBUG] AWSAuthV4Signer Final String to sign: AWS4-HMAC-SHA256
20221117T062601Z
20221117/us-west-2/kinesisvideo/aws4_request
3e87c7a5199fb6750fa8c5d182a803c984fdd680a73f6909ddc07a625de2786a
I20221116 22:26:01.161751 241823 ] [DEBUG] AWSAuthV4Signer Final computed signing hash: 0f28d0297ec5f235d2e5737a37da7d9ef6b326bdccec3937b80e0a5ee67cd028
I20221116 22:26:01.161772 241823 ] [DEBUG] AWSAuthV4Signer Signing request with: AWS4-HMAC-SHA256 Credential=**********/20221117/us-west-2/kinesisvideo/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=0f28d0297ec5f235d2e5737a37da7d9ef6b326bdccec3937b80e0a5ee67cd028
I20221116 22:26:01.161795 241823 ] [DEBUG] AWSClient Request Successfully signed
I20221116 22:26:01.161836 241823 ] [DEBUG] CurlHandleContainer Attempting to acquire curl connection.
I20221116 22:26:01.161854 241823 ] [DEBUG] CurlHandleContainer No current connections available in pool. Attempting to create new connections.
I20221116 22:26:01.161870 241823 ] [DEBUG] CurlHandleContainer attempting to grow pool size by 2
I20221116 22:26:01.161924 241823 ] CurlHandleContainer Pool grown by 2
I20221116 22:26:01.161942 241823 ] CurlHandleContainer Connection has been released. Continuing.
I20221116 22:26:01.161959 241823 ] [DEBUG] CurlHandleContainer Returning connection handle 0x7f9bd4006460
I20221116 22:26:01.161976 241823 ] [DEBUG] CurlHttpClient Obtained connection handle 0x7f9bd4006460
I20221116 22:26:01.188683 241823 ] [DEBUG] CURL (Text) Trying 35.161.88.185:443...
I20221116 22:26:01.188755 241823 ] [DEBUG] CURL (Text) TCP_NODELAY set
I20221116 22:26:01.214856 241823 ] [DEBUG] CURL (Text) Connected to kinesisvideo.us-west-2.amazonaws.com (35.161.88.185) port 443 (#0)
I20221116 22:26:01.215603 241823 ] [DEBUG] CURL (Text) ALPN, offering h2
I20221116 22:26:01.215648 241823 ] [DEBUG] CURL (Text) ALPN, offering http/1.1
I20221116 22:26:01.222441 241823 ] [DEBUG] CURL (Text) successfully set certificate verify locations:
I20221116 22:26:01.222498 241823 ] [DEBUG] CURL (Text) CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
I20221116 22:26:01.222772 241823 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:01.222800 241823 ] [DEBUG] CURL (Text) TLSv1.3 (OUT), TLS handshake, Client hello (1):
I20221116 22:26:01.222815 241823 ] [DEBUG] CURL (SSLDataOut) 512bytes
I20221116 22:26:01.248234 241823 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.248345 241823 ] [DEBUG] CURL (Text) TLSv1.3 (IN), TLS handshake, Server hello (2):
I20221116 22:26:01.248365 241823 ] [DEBUG] CURL (SSLDataIn) 104bytes
I20221116 22:26:01.248389 241823 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.248415 241823 ] [DEBUG] CURL (Text) TLSv1.2 (IN), TLS handshake, Certificate (11):
I20221116 22:26:01.248430 241823 ] [DEBUG] CURL (SSLDataIn) 4981bytes
I20221116 22:26:01.248790 241823 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.248814 241823 ] [DEBUG] CURL (Text) TLSv1.2 (IN), TLS handshake, Server key exchange (12):
I20221116 22:26:01.248824 241823 ] [DEBUG] CURL (SSLDataIn) 333bytes
I20221116 22:26:01.248929 241823 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.248946 241823 ] [DEBUG] CURL (Text) TLSv1.2 (IN), TLS handshake, Server finished (14):
I20221116 22:26:01.248955 241823 ] [DEBUG] CURL (SSLDataIn) 4bytes
I20221116 22:26:01.249392 241823 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:01.249410 241823 ] [DEBUG] CURL (Text) TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
I20221116 22:26:01.249418 241823 ] [DEBUG] CURL (SSLDataOut) 70bytes
I20221116 22:26:01.249446 241823 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:01.249459 241823 ] [DEBUG] CURL (Text) TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
I20221116 22:26:01.249470 241823 ] [DEBUG] CURL (SSLDataOut) 1bytes
I20221116 22:26:01.249518 241823 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:01.249532 241823 ] [DEBUG] CURL (Text) TLSv1.2 (OUT), TLS handshake, Finished (20):
I20221116 22:26:01.249543 241823 ] [DEBUG] CURL (SSLDataOut) 16bytes
I20221116 22:26:01.280340 241823 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.280426 241823 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.280488 241823 ] [DEBUG] CURL (Text) TLSv1.2 (IN), TLS handshake, Finished (20):
I20221116 22:26:01.280496 241823 ] [DEBUG] CURL (SSLDataIn) 16bytes
I20221116 22:26:01.280516 241823 ] [DEBUG] CURL (Text) SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
I20221116 22:26:01.280529 241823 ] [DEBUG] CURL (Text) ALPN, server accepted to use http/1.1
I20221116 22:26:01.280565 241823 ] [DEBUG] CURL (Text) Server certificate:
I20221116 22:26:01.280581 241823 ] [DEBUG] CURL (Text) subject: CN=kinesisvideo.us-west-2.amazonaws.com
I20221116 22:26:01.280598 241823 ] [DEBUG] CURL (Text) start date: Sep 19 00:00:00 2022 GMT
I20221116 22:26:01.280607 241823 ] [DEBUG] CURL (Text) expire date: Sep 13 23:59:59 2023 GMT
I20221116 22:26:01.280629 241823 ] [DEBUG] CURL (Text) subjectAltName: host "kinesisvideo.us-west-2.amazonaws.com" matched cert's "kinesisvideo.us-west-2.amazonaws.com"
I20221116 22:26:01.280647 241823 ] [DEBUG] CURL (Text) issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon
I20221116 22:26:01.280658 241823 ] [DEBUG] CURL (Text) SSL certificate verify ok.
I20221116 22:26:01.280709 241823 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:01.280756 241823 ] [DEBUG] CURL (HeaderOut) POST /getDataEndpoint HTTP/1.1
Host: kinesisvideo.us-west-2.amazonaws.com
Accept: */*
amz-sdk-invocation-id: 20F8E56A-2C0A-47B0-9E78-C51373BE6653
amz-sdk-request: attempt=1
authorization: *****************************
content-length: 132
content-type: application/json
user-agent: aws-sdk-cpp/1.9.264 Linux/5.14.0-1054-oem x86_64 Clang/14.0.0
x-amz-api-version: 2017-09-30
x-amz-content-sha256: eb78204f6421c299836fac2073ec4b3b18c5d59f2e9ed74ad5125e3658d5a553
x-amz-date: 20221117T062601Z
Expect: 100-continue
I20221116 22:26:01.303786 241823 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.303861 241823 ] [DEBUG] CURL (Text) Mark bundle as not supporting multiuse
I20221116 22:26:01.303876 241823 ] [DEBUG] CURL (HeaderIn) HTTP/1.1 100 Continue
I20221116 22:26:01.303913 241823 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:01.303948 241823 ] [DEBUG] CURL (DataOut) {
"StreamARN": "arn:aws:kinesisvideo:us-west-2:515308642229:stream/test_continuous_stream/1668655515118",
"APIName": "GET_MEDIA"
}
I20221116 22:26:01.366863 241823 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.366979 241823 ] [DEBUG] CURL (Text) Mark bundle as not supporting multiuse
I20221116 22:26:01.367004 241823 ] [DEBUG] CURL (HeaderIn) HTTP/1.1 200 OK
I20221116 22:26:01.367025 241823 ] [DEBUG] CURL (HeaderIn) Date: Thu, 17 Nov 2022 06:26:01 GMT
I20221116 22:26:01.367058 241823 ] [DEBUG] CURL (HeaderIn) Content-Type: application/json
I20221116 22:26:01.367084 241823 ] [DEBUG] CURL (HeaderIn) Content-Length: 74
I20221116 22:26:01.367106 241823 ] [DEBUG] CURL (HeaderIn) Connection: keep-alive
I20221116 22:26:01.367132 241823 ] [DEBUG] CURL (HeaderIn) x-amzn-RequestId: cda49f78-1d06-48aa-b0fd-8219e0ad8ce8
I20221116 22:26:01.367157 241823 ] [DEBUG] CURL (HeaderIn)
I20221116 22:26:01.367175 241823 ] [DEBUG] CURL (DataIn) {"DataEndpoint":"https://s-01b343f5.kinesisvideo.us-west-2.amazonaws.com"}
I20221116 22:26:01.367213 241823 ] [DEBUG] CURL (Text) Connection #0 to host kinesisvideo.us-west-2.amazonaws.com left intact
I20221116 22:26:01.367236 241823 ] [DEBUG] CurlHttpClient Returned http response code 200
I20221116 22:26:01.367255 241823 ] [DEBUG] CurlHttpClient Returned content type application/json
I20221116 22:26:01.367274 241823 ] [DEBUG] CurlHttpClient Releasing curl handle 0x7f9bd4006460
I20221116 22:26:01.367323 241823 ] [DEBUG] CurlHandleContainer Releasing curl handle 0x7f9bd4006460
I20221116 22:26:01.367343 241823 ] [DEBUG] CurlHandleContainer Notified waiting threads.
I20221116 22:26:01.367373 241823 ] [DEBUG] AWSClient Request returned successful response.
I20221116 22:26:01.367542 241792 KinesisVideoStreamClient.cpp:77] Obtained endpoint https://s-01b343f5.kinesisvideo.us-west-2.amazonaws.com for stream arn:aws:kinesisvideo:us-west-2:515308642229:stream/test_continuous_stream/1668655515118
I20221116 22:26:01.367621 241792 ] [DEBUG] ClientConfiguration ClientConfiguration will use SDK Auto Resolved profile: [default] if not specified by users.
[0;33mW20221116 22:26:01.367650 241792 ] ClientConfiguration Retry Strategy will use the default max attempts.
[mI20221116 22:26:01.367694 241792 ] [DEBUG] FileSystemUtils Environment value for variable HOME is /home/devuser
I20221116 22:26:01.367717 241792 ] [DEBUG] FileSystemUtils Home directory is missing the final / appending one to normalize
I20221116 22:26:01.367735 241792 ] [DEBUG] FileSystemUtils Final Home Directory is /home/devuser/
I20221116 22:26:01.367758 241792 ] Aws::Config::AWSConfigFileProfileConfigLoader Initializing config loader against fileName /home/devuser/.aws/credentials and using profilePrefix = 0
I20221116 22:26:01.367777 241792 ] [DEBUG] FileSystemUtils Environment value for variable HOME is /home/devuser
I20221116 22:26:01.367797 241792 ] [DEBUG] FileSystemUtils Home directory is missing the final / appending one to normalize
I20221116 22:26:01.367816 241792 ] [DEBUG] FileSystemUtils Final Home Directory is /home/devuser/
I20221116 22:26:01.367836 241792 ] [DEBUG] FileSystemUtils Environment value for variable HOME is /home/devuser
I20221116 22:26:01.367856 241792 ] [DEBUG] FileSystemUtils Home directory is missing the final / appending one to normalize
I20221116 22:26:01.367874 241792 ] [DEBUG] FileSystemUtils Final Home Directory is /home/devuser/
I20221116 22:26:01.367889 241792 ] ProfileConfigFileAWSCredentialsProvider Setting provider to read credentials from /home/devuser/.aws/credentials for credentials file and /home/devuser/.aws/config for the config file , for use with profile default
I20221116 22:26:01.367909 241792 ] ProcessCredentialsProvider Setting process credentials provider to read config from default
[0;33mW20221116 22:26:01.367931 241792 ] STSAssumeRoleWithWebIdentityCredentialsProvider Token file must be specified to use STS AssumeRole web identity creds provider.
[mI20221116 22:26:01.367954 241792 ] SSOCredentialsProvider Setting sso credentials provider to read config from default
I20221116 22:26:01.367969 241792 ] [DEBUG] DefaultAWSCredentialsProviderChain The environment variable value AWS_CONTAINER_CREDENTIALS_RELATIVE_URI is
I20221116 22:26:01.367980 241792 ] [DEBUG] DefaultAWSCredentialsProviderChain The environment variable value AWS_CONTAINER_CREDENTIALS_FULL_URI is
I20221116 22:26:01.367997 241792 ] [DEBUG] DefaultAWSCredentialsProviderChain The environment variable value AWS_EC2_METADATA_DISABLED is
I20221116 22:26:01.368012 241792 ] InstanceProfileCredentialsProvider Creating Instance with default EC2MetadataClient and refresh rate 300000
I20221116 22:26:01.368026 241792 ] DefaultAWSCredentialsProviderChain Added EC2 metadata service credentials provider to the provider chain.
I20221116 22:26:01.368049 241792 ] [DEBUG] EnvironmentAWSCredentialsProvider Found credential in environment with access key id **********
I20221116 22:26:01.368074 241792 ] EnvironmentAWSCredentialsProvider Found secret key
I20221116 22:26:01.368119 241792 ] CurlHandleContainer Initializing CurlHandleContainer with size 25
I20221116 22:26:01.368312 241793 KinesisVideoStreamMessageProcessor.cpp:241] Fetching continuation token for arn:aws:kinesisvideo:us-west-2:515308642229:stream/test_continuous_stream/1668655515118/test_sub
I20221116 22:26:01.368389 241793 KinesisVideoStreamMessageProcessor.cpp:252] First time fetching from the stream. Using start selector 0 for arn:aws:kinesisvideo:us-west-2:515308642229:stream/test_continuous_stream/1668655515118/test_sub
I20221116 22:26:01.368760 241825 ] [DEBUG] EnvironmentAWSCredentialsProvider Found credential in environment with access key id **********
I20221116 22:26:01.368799 241825 ] EnvironmentAWSCredentialsProvider Found secret key
I20221116 22:26:01.368827 241825 ] [DEBUG] AWSAuthV4Signer Calculated sha256 156e32d42e1e6114b2adb64e2ed79abc6a14b20895a6701a9b617d88b70763bb for payload.
I20221116 22:26:01.368911 241825 ] [DEBUG] AWSAuthV4Signer Canonical Header String: amz-sdk-invocation-id:1E7F6E56-200A-4044-9300-68790D2F148F
amz-sdk-request:attempt=1
content-length:165
content-type:application/json
host:s-01b343f5.kinesisvideo.us-west-2.amazonaws.com
x-amz-api-version:2017-09-30
x-amz-content-sha256:156e32d42e1e6114b2adb64e2ed79abc6a14b20895a6701a9b617d88b70763bb
x-amz-date:20221117T062601Z
I20221116 22:26:01.368937 241825 ] [DEBUG] AWSAuthV4Signer Signed Headers value:amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date
I20221116 22:26:01.368973 241825 ] [DEBUG] AWSAuthV4Signer Canonical Request String: POST
/getMedia
amz-sdk-invocation-id:1E7F6E56-200A-4044-9300-68790D2F148F
amz-sdk-request:attempt=1
content-length:165
content-type:application/json
host:s-01b343f5.kinesisvideo.us-west-2.amazonaws.com
x-amz-api-version:2017-09-30
x-amz-content-sha256:156e32d42e1e6114b2adb64e2ed79abc6a14b20895a6701a9b617d88b70763bb
x-amz-date:20221117T062601Z
amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date
156e32d42e1e6114b2adb64e2ed79abc6a14b20895a6701a9b617d88b70763bb
I20221116 22:26:01.369019 241825 ] [DEBUG] AWSAuthV4Signer Final String to sign: AWS4-HMAC-SHA256
20221117T062601Z
20221117/us-west-2/kinesisvideo/aws4_request
f3367c5d1aadf0104a20250b8c3c98a88cf25afd31e35d7926ba3b5812d91434
I20221116 22:26:01.369046 241825 ] [DEBUG] AWSAuthV4Signer Final computed signing hash: 3e39649a1e370a55fa70f85e901f09644b46afc1a389f2dff7564658e0044d79
I20221116 22:26:01.369071 241825 ] [DEBUG] AWSAuthV4Signer Signing request with: AWS4-HMAC-SHA256 Credential=**********/20221117/us-west-2/kinesisvideo/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=3e39649a1e370a55fa70f85e901f09644b46afc1a389f2dff7564658e0044d79
I20221116 22:26:01.369097 241825 ] [DEBUG] AWSClient Request Successfully signed
I20221116 22:26:01.369143 241825 ] [DEBUG] CurlHandleContainer Attempting to acquire curl connection.
I20221116 22:26:01.369164 241825 ] [DEBUG] CurlHandleContainer No current connections available in pool. Attempting to create new connections.
I20221116 22:26:01.369185 241825 ] [DEBUG] CurlHandleContainer attempting to grow pool size by 2
I20221116 22:26:01.369226 241825 ] CurlHandleContainer Pool grown by 2
I20221116 22:26:01.369247 241825 ] CurlHandleContainer Connection has been released. Continuing.
I20221116 22:26:01.369264 241825 ] [DEBUG] CurlHandleContainer Returning connection handle 0x7f9bbc006440
I20221116 22:26:01.369294 241825 ] [DEBUG] CurlHttpClient Obtained connection handle 0x7f9bbc006440
I20221116 22:26:01.390301 241825 ] [DEBUG] CURL (Text) Trying 44.242.161.10:443...
I20221116 22:26:01.390372 241825 ] [DEBUG] CURL (Text) TCP_NODELAY set
I20221116 22:26:01.416851 241825 ] [DEBUG] CURL (Text) Connected to s-01b343f5.kinesisvideo.us-west-2.amazonaws.com (44.242.161.10) port 443 (#0)
I20221116 22:26:01.417048 241825 ] [DEBUG] CURL (Text) ALPN, offering h2
I20221116 22:26:01.417076 241825 ] [DEBUG] CURL (Text) ALPN, offering http/1.1
I20221116 22:26:01.425398 241825 ] [DEBUG] CURL (Text) successfully set certificate verify locations:
I20221116 22:26:01.425460 241825 ] [DEBUG] CURL (Text) CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
I20221116 22:26:01.425629 241825 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:01.425652 241825 ] [DEBUG] CURL (Text) TLSv1.3 (OUT), TLS handshake, Client hello (1):
I20221116 22:26:01.425668 241825 ] [DEBUG] CURL (SSLDataOut) 512bytes
I20221116 22:26:01.454326 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.454417 241825 ] [DEBUG] CURL (Text) TLSv1.3 (IN), TLS handshake, Server hello (2):
I20221116 22:26:01.454430 241825 ] [DEBUG] CURL (SSLDataIn) 89bytes
I20221116 22:26:01.454452 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.454483 241825 ] [DEBUG] CURL (Text) TLSv1.2 (IN), TLS handshake, Certificate (11):
I20221116 22:26:01.454494 241825 ] [DEBUG] CURL (SSLDataIn) 4999bytes
I20221116 22:26:01.454874 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.454897 241825 ] [DEBUG] CURL (Text) TLSv1.2 (IN), TLS handshake, Server key exchange (12):
I20221116 22:26:01.454905 241825 ] [DEBUG] CURL (SSLDataIn) 333bytes
I20221116 22:26:01.455008 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.455025 241825 ] [DEBUG] CURL (Text) TLSv1.2 (IN), TLS handshake, Server finished (14):
I20221116 22:26:01.455034 241825 ] [DEBUG] CURL (SSLDataIn) 4bytes
I20221116 22:26:01.455178 241825 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:01.455193 241825 ] [DEBUG] CURL (Text) TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
I20221116 22:26:01.455200 241825 ] [DEBUG] CURL (SSLDataOut) 70bytes
I20221116 22:26:01.455226 241825 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:01.455236 241825 ] [DEBUG] CURL (Text) TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
I20221116 22:26:01.455245 241825 ] [DEBUG] CURL (SSLDataOut) 1bytes
I20221116 22:26:01.455293 241825 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:01.455308 241825 ] [DEBUG] CURL (Text) TLSv1.2 (OUT), TLS handshake, Finished (20):
I20221116 22:26:01.455320 241825 ] [DEBUG] CURL (SSLDataOut) 16bytes
I20221116 22:26:01.487587 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.487668 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.487728 241825 ] [DEBUG] CURL (Text) TLSv1.2 (IN), TLS handshake, Finished (20):
I20221116 22:26:01.487744 241825 ] [DEBUG] CURL (SSLDataIn) 16bytes
I20221116 22:26:01.487772 241825 ] [DEBUG] CURL (Text) SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
I20221116 22:26:01.487795 241825 ] [DEBUG] CURL (Text) ALPN, server did not agree to a protocol
I20221116 22:26:01.487810 241825 ] [DEBUG] CURL (Text) Server certificate:
I20221116 22:26:01.487833 241825 ] [DEBUG] CURL (Text) subject: CN=s-01b343f5.kinesisvideo.us-west-2.amazonaws.com
I20221116 22:26:01.487854 241825 ] [DEBUG] CURL (Text) start date: Jun 8 00:00:00 2022 GMT
I20221116 22:26:01.487869 241825 ] [DEBUG] CURL (Text) expire date: May 26 23:59:59 2023 GMT
I20221116 22:26:01.487895 241825 ] [DEBUG] CURL (Text) subjectAltName: host "s-01b343f5.kinesisvideo.us-west-2.amazonaws.com" matched cert's "s-01b343f5.kinesisvideo.us-west-2.amazonaws.com"
I20221116 22:26:01.487913 241825 ] [DEBUG] CURL (Text) issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon
I20221116 22:26:01.487927 241825 ] [DEBUG] CURL (Text) SSL certificate verify ok.
I20221116 22:26:01.487982 241825 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:01.488024 241825 ] [DEBUG] CURL (HeaderOut) POST /getMedia HTTP/1.1
Host: s-01b343f5.kinesisvideo.us-west-2.amazonaws.com
Accept: */*
amz-sdk-invocation-id: 1E7F6E56-200A-4044-9300-68790D2F148F
amz-sdk-request: attempt=1
authorization: AWS4-HMAC-SHA256 Credential=**********/20221117/us-west-2/kinesisvideo/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-api-version;x-amz-content-sha256;x-amz-date, Signature=3e39649a1e370a55fa70f85e901f09644b46afc1a389f2dff7564658e0044d79
content-length: 165
content-type: application/json
user-agent: aws-sdk-cpp/1.9.264 Linux/5.14.0-1054-oem x86_64 Clang/14.0.0
x-amz-api-version: 2017-09-30
x-amz-content-sha256: 156e32d42e1e6114b2adb64e2ed79abc6a14b20895a6701a9b617d88b70763bb
x-amz-date: 20221117T062601Z
Expect: 100-continue
I20221116 22:26:01.511116 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.511204 241825 ] [DEBUG] CURL (Text) Mark bundle as not supporting multiuse
I20221116 22:26:01.511219 241825 ] [DEBUG] CURL (HeaderIn) HTTP/1.1 100 Continue
I20221116 22:26:01.511257 241825 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:01.511302 241825 ] [DEBUG] CURL (DataOut) {
"StreamARN": "arn:aws:kinesisvideo:us-west-2:515308642229:stream/test_continuous_stream/1668655515118",
"StartSelector": {
"StartSelectorType": "EARLIEST"
}
}
I20221116 22:26:01.594106 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.594202 241825 ] [DEBUG] CURL (Text) Mark bundle as not supporting multiuse
I20221116 22:26:01.594215 241825 ] [DEBUG] CURL (HeaderIn) HTTP/1.1 200 OK
I20221116 22:26:01.594233 241825 ] [DEBUG] CURL (HeaderIn) x-amzn-RequestId: d7d21f29-79d1-663b-8c3d-c91050454d44
I20221116 22:26:01.594259 241825 ] [DEBUG] CURL (HeaderIn) Date: Thu, 17 Nov 2022 06:26:01 GMT
I20221116 22:26:01.594274 241825 ] [DEBUG] CURL (HeaderIn) Content-Type: video/webm
I20221116 22:26:01.594290 241825 ] [DEBUG] CURL (HeaderIn) Transfer-Encoding: chunked
I20221116 22:26:01.594306 241825 ] [DEBUG] CURL (HeaderIn)
I20221116 22:26:01.686846 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.686923 241825 ] [DEBUG] CURL (DataIn) 28
Eߣ�B��B��B�B�B��matroskaB��B��
I20221116 22:26:01.686950 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.686964 241825 ] [DEBUG] CURL (DataIn) c
S�g�������
6
I�f@g
I20221116 22:26:01.686976 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.686998 241825 ] [DEBUG] CURL (DataIn) 13
s��jW�X��
5+�.��
I20221116 22:26:01.687012 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:01.687023 241825 ] [DEBUG] CURL (DataIn) c
.
I20221116 22:26:16.368029 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:16.368048 241825 ] [DEBUG] CURL (DataIn) d
�
**************curl traces and buffer being printed out *************
.
I20221116 22:26:16.368233 241825 ] [DEBUG] CURL (SSLDataIn) 5bytes
I20221116 22:26:16.368252 241825 ] [DEBUG] CURL (DataIn) d
�
.
*****************
I20221116 22:26:16.368324 241825 ] [DEBUG] CURL (Text) Failed writing body (0 != 7363)
I20221116 22:26:16.368340 241825 ] [DEBUG] CURL (Text) Failed reading the chunked-encoded stream
I20221116 22:26:16.368367 241825 ] [DEBUG] CURL (Text) Closing connection 0
I20221116 22:26:16.368389 241825 ] [DEBUG] CURL (SSLDataOut) 5bytes
I20221116 22:26:16.368438 241825 ] [DEBUG] CURL (Text) TLSv1.2 (OUT), TLS alert, close notify (256):
I20221116 22:26:16.368456 241825 ] [DEBUG] CURL (SSLDataOut) 2bytes
I20221116 22:26:16.369724 241825 ] [DEBUG] CurlHandleContainer Destroy curl handle: 0x7f9bbc006440
I20221116 22:26:16.369769 241825 ] [DEBUG] CurlHandleContainer Created replacement handle and released to pool: 0x7f9bbc020530
I20221116 22:26:16.369803 241825 ] [DEBUG] AWSClient Request returned error. Attempting to generate appropriate error codes from response
[0;31mE20221116 22:26:16.369850 241825 ] AWSClient HTTP response code: -1
*ױ�
Describe the bug
I am finding that both GetMediaAsync as well as GetMedia get blocked if I am simultaneously running gstreamer plugin to push the media from the camera. It works fine if I stop the gstreamer session.
Here is the stack where it is stuck:
Expected Behavior
The GetMedia call should return successfully and return the Stream.
Current Behavior
API gets blocked.
Reproduction Steps
Run the gstreamer command to push the media to the kinesis video stream. The command line that I am using is: gst-launch-1.0 v4l2src do-timestamp=TRUE device=/dev/video0 ! image/jpeg ! jpegdec ! x264enc tune=zerolatency ! h264parse ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name="" storage-size=512 access-key="" secret-key="" aws-region="us-west-2"
Run a sample to get call the GetMediaAsync or GetMedia. The call will not return until the gstreamer session is canceled.
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.9.264
Compiler and Version used
Ubuntu clang version 14.0.6-++20221029082011+f28c006a5895-1~exp1~20221029202041.162 Target: x86_64-pc-linux-gnu Thread model: posix
Operating System and version
Ubuntu 20.04