Comments (17)
Sorry for the problems you are having. By chance could you send us the log output?
On another note, you can just use CognitoCachingAnonymousProvider from the identity-manangement api directly and pass that to your cognito-sync client or dynamodb client.
from aws-sdk-cpp.
nevermind. I just saw it in your initial post. I'll look at this as soon as I make it to the office.
from aws-sdk-cpp.
OK, I found the problem:
What we signed
GET
/identitypools/us-east-1:c361faa4-71ce-4db3-b5fa-fa3618f5bfd2/identities/us-east-1:ebff5c50-7551-4708-8ec1-02252a03c382/datasets
host:cognito-sync.us-east-1.amazonaws.com
user-agent:aws-sdk-cpp/0.9-460-g9f17f3c Windows/6.1.7601-Service Pack 1 AMD64
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20150928T133549Z
x-amz-security-token:AQoDYXdzEHcaoAWD0G39iYxvyMJP1ajuIqn09qcF+ErSq0ydz/0DzdLX2kOtTItbidClHXJvjsfY/lF5iOaf/g47dXInmcpuqsGZAi3NRypTpqOrNvOZnZOFQJkliMh3x/jiqNISmnrYzTrohHipwilgoXgIP5pNKVOci934pggSKdAPnkYqDv6UCXohOOxDcyj7opk+w8cFXzNc/C+5Y9P34ZDrC/mIke+t49+iNr8YEzI2pVzJd8GQZwHVpsq/Tfl46zhIuBTtVS3ezRrGjvKXGY2asGaQrGUTnsAAXPLM7KnaHqonVjahSmjxi5KcUdEMvK5D4bUkT9ZhjKv2zBApWNAhN6iQ6mpsINtWz8UV9RcoHmttrzptv/hisOFwDjPre8QMgUSPaQ9PajjxV4YeiD1vP4MUH00QhmHCBBNs9heKl8LjSjiQt/MQXDiljdBz733DaTtsvbe+1XutYop/e+BftkJvYQSTTaEQWF+CG/fD5YTtcPYqu6W0FH9cidF1CvhDtVuLI021AXAvfCyRNK4BD0oryp3/S1umDcwUWnp7ERi4gnvMRXUNsHJSGXxjRqfal7x47qJ7rR38zP846zDfyeJlAhJjoidm6snfshV+LhDUpiO43O6KGcCmJTKlTAPIJSh1lwnbM1EeNjel5Sx+iUxKQz1EgtQct0ckigUKhETR6qwdV8zJSA3YZcJDUH9kvzj8VXJVhUzfyfsC+DK3aACeh3afJOCQB8/Lwl9Ue9fuwhcIWt8URKYS9EgAaTNdK/1hnjIzkzkK/c+oUCn3BfBj8GrC/o2+n09r3YhowHsHR+aBouXJhRN6R+4tFmSYncZjyH93N8ZQvP5b5N6Dh0+VIot3LkbBXWJlpJ+KW7bJQHMM4nq4TQ4UiKgp2ELWJbpAJLwgr4SlsAU=
host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Final string to sign:
AWS4-HMAC-SHA256
20150928T133549Z
20150928/us-east-1/cognito-sync/aws4_request
9eecbbe17eb0ec69d0f9eb3809706763ec5ed82e327e08b9a68fe7554bbbcb0c
What AWS Auth expected:
GET
/identitypools/us-east-1%3Ac361faa4-71ce-4db3-b5fa-fa3618f5bfd2/identities/us-east-1%3Aebff5c50-7551-4708-8ec1-02252a03c382/datasets
host:cognito-sync.us-east-1.amazonaws.com\nuser-agent:aws-sdk-cpp/0.9-460-g9f17f3c Windows/6.1.7601-Service Pack 1 AMD64
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\nx-amz-date:20150928T133549Z
x-amz-security-token:AQoDYXdzEHcaoAWD0G39iYxvyMJP1ajuIqn09qcF+ErSq0ydz/0DzdLX2kOtTItbidClHXJvjsfY/lF5iOaf/g47dXInmcpuqsGZAi3NRypTpqOrNvOZnZOFQJkliMh3x/jiqNISmnrYzTrohHipwilgoXgIP5pNKVOci934pggSKdAPnkYqDv6UCXohOOxDcyj7opk+w8cFXzNc/C+5Y9P34ZDrC/mIke+t49+iNr8YEzI2pVzJd8GQZwHVpsq/Tfl46zhIuBTtVS3ezRrGjvKXGY2asGaQrGUTnsAAXPLM7KnaHqonVjahSmjxi5KcUdEMvK5D4bUkT9ZhjKv2zBApWNAhN6iQ6mpsINtWz8UV9RcoHmttrzptv/hisOFwDjPre8QMgUSPaQ9PajjxV4YeiD1vP4MUH00QhmHCBBNs9heKl8LjSjiQt/MQXDiljdBz733DaTtsvbe+1XutYop/e+BftkJvYQSTTaEQWF+CG/fD5YTtcPYqu6W0FH9cidF1CvhDtVuLI021AXAvfCyRNK4BD0oryp3/S1umDcwUWnp7ERi4gnvMRXUNsHJSGXxjRqfal7x47qJ7rR38zP846zDfyeJlAhJjoidm6snfshV+LhDUpiO43O6KGcCmJTKlTAPIJSh1lwnbM1EeNjel5Sx+iUxKQz1EgtQct0ckigUKhETR6qwdV8zJSA3YZcJDUH9kvzj8VXJVhUzfyfsC+DK3aACeh3afJOCQB8/Lwl9Ue9fuwhcIWt8URKYS9EgAaTNdK/1hnjIzkzkK/c+oUCn3BfBj8GrC/o2+n09r3YhowHsHR+aBouXJhRN6R+4tFmSYncZjyH93N8ZQvP5b5N6Dh0+VIot3LkbBXWJlpJ+KW7bJQHMM4nq4TQ4UiKgp2ELWJbpAJLwgr4SlsAU=
host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Final string to sign
AWS4-HMAC-SHA256
20150928T133549Z
20150928/us-east-1/cognito-sync/aws4_request
b5389b25a1c3a7b97c3d03fa556f5f0753948377b194e81de12ab1e7f5879386
Moral of the story, we didn't URL Encode the path portion of the URI in the request signing process (which is something that would only ever likely break in cognito-sync). I'll try and get a fix out for this today. In the meantime. A well placed StringUtils::URLEncode on the listDataSourcesRequest.SetIdentityPool() would probably work around the issue until I can get a fix out.
from aws-sdk-cpp.
try changing:
listDatasetsRequest.SetIdentityPoolId(identityPoolId);
to:
listDatasetsRequest.SetIdentityPoolId(StringUtils::URLEncode(identityPoolId.c_str()));
from aws-sdk-cpp.
Thanks for so fast response.
I made changes but signature still doesn't match, take a look at the new log, please:
from aws-sdk-cpp.
sorry, you need to UrlEncode the identity id as well. I should've caught that.
from aws-sdk-cpp.
Changed, but, seems, the problem with encoding still exists:
from aws-sdk-cpp.
yeah.... AWSAuth escaped our escape :( I'm going to have to find out what's going on with that.
from aws-sdk-cpp.
I contacted the team that owns auth and I'll find out what we need to do to fix the problem. I'll keep you posted.
from aws-sdk-cpp.
I can confirm same problem on OS X and Linux.
from aws-sdk-cpp.
I'm really sorry for the silence on this. I'm checking with the Auth people to find out what I'm doing wrong or if there is a bug in how this stuff works. I'll let you know asap.
The temporary fix is..... right here: https://github.com/awslabs/aws-sdk-cpp/blob/master/aws-cpp-sdk-core/source/auth/AWSAuthSigner.cpp#L67
URL encode the path (that may actually be the long term solution as well). Then remove the URLEncode stuff you added before. I'm still investigating. If you want to try that, then rebuild. I'll keep digging on my side.
from aws-sdk-cpp.
did you have a chance to give this a try?
from aws-sdk-cpp.
Yes, changed this line to
signingStringStream << NEWLINE << StringUtils::URLEncode(request.GetUri().GetPath().c_str()) << NEWLINE;
Then recompiled aws library, removed the old stuff from my code, but signature still doesn't match.
[TRACE] 2015-10-02 23:19:00 FileSystemUtils [140647740295040] Checking HOME for the home directory.
[DEBUG] 2015-10-02 23:19:00 FileSystemUtils [140647740295040] Environment value for variable HOME is /home/eugene
[INFO] 2015-10-02 23:19:00 ProfileConfigFileAWSCredentialsProvider [140647740295040] Setting provider to read credentials from /home/eugene/.aws/credentials, for use with profile example1developer.
[INFO] 2015-10-02 23:19:00 CurlHandleContainer [140647740295040] Intializing CurlHandleContainer with size 25.
[INFO] 2015-10-02 23:19:00 CurlHandleContainer [140647740295040] Initializing Curl library
[TRACE] 2015-10-02 23:19:00 AWSClient [140647740295040] Found body, but content-length has not been set, attempting to compute content-length
[DEBUG] 2015-10-02 23:19:00 ProfileConfigFileAWSCredentialsProvider [140647740295040] Refreshing credentials.
[INFO] 2015-10-02 23:19:00 ProfileConfigFileAWSCredentialsProvider [140647740295040] Access key for profile not found.
[INFO] 2015-10-02 23:19:00 ProfileConfigFileAWSCredentialsProvider [140647740295040] Secret key for profile not found.
[INFO] 2015-10-02 23:19:00 ProfileConfigFileAWSCredentialsProvider [140647740295040] Optional session token for profile not found.
[DEBUG] 2015-10-02 23:19:00 AWSClient [140647740295040] Request Successfully signed
[TRACE] 2015-10-02 23:19:00 CurlHttpClient [140647740295040] Making request to https://cognito-identity.us-east-1.amazonaws.com
[TRACE] 2015-10-02 23:19:00 CurlHttpClient [140647740295040] Including headers:
[TRACE] 2015-10-02 23:19:00 CurlHttpClient [140647740295040] content-length: 108
[TRACE] 2015-10-02 23:19:00 CurlHttpClient [140647740295040] content-type: application/x-amz-json-1.1
[TRACE] 2015-10-02 23:19:00 CurlHttpClient [140647740295040] host: cognito-identity.us-east-1.amazonaws.com
[TRACE] 2015-10-02 23:19:00 CurlHttpClient [140647740295040] user-agent: aws-sdk-cpp/0.9-460-g9f17f3c Linux/3.19.0-30-generic x86_64
[TRACE] 2015-10-02 23:19:00 CurlHttpClient [140647740295040] x-amz-target: AWSCognitoIdentityService.GetId
[DEBUG] 2015-10-02 23:19:00 CurlHandleContainer [140647740295040] Attempting to acquire curl connection.
[DEBUG] 2015-10-02 23:19:00 CurlHandleContainer [140647740295040] No current connections available in pool. Attempting to create new connections.
[DEBUG] 2015-10-02 23:19:00 CurlHandleContainer [140647740295040] attempting to grow pool size by 2.
[INFO] 2015-10-02 23:19:00 CurlHandleContainer [140647740295040] Pool successfully grown by 2
[DEBUG] 2015-10-02 23:19:00 CurlHandleContainer [140647740295040] Returning connection handle 0x1cb59f0.
[DEBUG] 2015-10-02 23:19:00 CurlHttpClient [140647740295040] Obtained connection handle 0x1cb59f0.
[TRACE] 2015-10-02 23:19:00 CurlHttpClient [140647740295040] HTTP/1.1 100 Continue
[TRACE] 2015-10-02 23:19:00 CurlHttpClient [140647740295040]
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] HTTP/1.1 200 OK
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] x-amzn-RequestId: d17ac568-6942-11e5-a00c-c1407eaaa941
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Content-Type: application/x-amz-json-1.1
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Content-Length: 63
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Date: Fri, 02 Oct 2015 20:19:00 GMT
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040]
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] 63 bytes written to response.
[DEBUG] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Returned http response code 200.
[DEBUG] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Returned content type application/x-amz-json-1.1.
[DEBUG] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Releasing curl handle 0x1cb59f0.
[DEBUG] 2015-10-02 23:19:01 CurlHandleContainer [140647740295040] Releasing curl handle 0x1cb59f0.
[DEBUG] 2015-10-02 23:19:01 CurlHandleContainer [140647740295040] Notifying waiting threads.
[DEBUG] 2015-10-02 23:19:01 AWSClient [140647740295040] Request returned successful response.
[TRACE] 2015-10-02 23:19:01 AWSClient [140647740295040] Request was either successful, or we are now out of retries.
[TRACE] 2015-10-02 23:19:01 AWSClient [140647740295040] Found body, but content-length has not been set, attempting to compute content-length
[DEBUG] 2015-10-02 23:19:01 AWSClient [140647740295040] Request Successfully signed
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Making request to https://cognito-identity.us-east-1.amazonaws.com
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Including headers:
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] content-length: 71
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] content-type: application/x-amz-json-1.1
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] host: cognito-identity.us-east-1.amazonaws.com
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] user-agent: aws-sdk-cpp/0.9-460-g9f17f3c Linux/3.19.0-30-generic x86_64
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] x-amz-target: AWSCognitoIdentityService.GetCredentialsForIdentity
[DEBUG] 2015-10-02 23:19:01 CurlHandleContainer [140647740295040] Attempting to acquire curl connection.
[DEBUG] 2015-10-02 23:19:01 CurlHandleContainer [140647740295040] Returning connection handle 0x1cb59f0.
[DEBUG] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Obtained connection handle 0x1cb59f0.
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] HTTP/1.1 100 Continue
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040]
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] HTTP/1.1 200 OK
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] x-amzn-RequestId: d1a8b33c-6942-11e5-a00c-c1407eaaa941
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Content-Type: application/x-amz-json-1.1
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Content-Length: 1168
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Date: Fri, 02 Oct 2015 20:19:00 GMT
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040]
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] 1168 bytes written to response.
[DEBUG] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Returned http response code 200.
[DEBUG] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Returned content type application/x-amz-json-1.1.
[DEBUG] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Releasing curl handle 0x1cb59f0.
[DEBUG] 2015-10-02 23:19:01 CurlHandleContainer [140647740295040] Releasing curl handle 0x1cb59f0.
[DEBUG] 2015-10-02 23:19:01 CurlHandleContainer [140647740295040] Notifying waiting threads.
[DEBUG] 2015-10-02 23:19:01 AWSClient [140647740295040] Request returned successful response.
[TRACE] 2015-10-02 23:19:01 AWSClient [140647740295040] Request was either successful, or we are now out of retries.
[INFO] 2015-10-02 23:19:01 CurlHandleContainer [140647740295040] Intializing CurlHandleContainer with size 25.
[TRACE] 2015-10-02 23:19:01 AWSClient [140647740295040] Found body, but content-length has not been set, attempting to compute content-length
[DEBUG] 2015-10-02 23:19:01 AWSAuthV4Signer [140647740295040] Calculated sha256 6a934553ab06147413d42b99f1380e9cf86a52ec3bebb9fda4a44411e6f4e2ed for payload.
[DEBUG] 2015-10-02 23:19:01 AWSAuthV4Signer [140647740295040] Canonical Header String: content-length:146
content-type:application/x-amz-json-1.0
host:dynamodb.us-east-1.amazonaws.com
user-agent:aws-sdk-cpp/0.9-460-g9f17f3c Linux/3.19.0-30-generic x86_64
x-amz-content-sha256:6a934553ab06147413d42b99f1380e9cf86a52ec3bebb9fda4a44411e6f4e2ed
x-amz-date:20151002T201901Z
x-amz-security-token:AQoDYXdzEN3//////////wEasAWUWP8lIbdUKNIpbGLOIh0eNU3vP9bPo5dGEI3kIr1gpzJ5ANI1ZUJ2Xzx5fMSVuSXi/wIxIE+RL9HxRM/b45XhMjBtn+g+uyoX9g1F9mPjEp+4/dcLxpDb5AcX0h2ZQmbLweAcn8fgPpDhprgZBEftNB8kla3EYmUSltCmy9ytwcibebZ/JEUUJGKi0SBkmAH1PpADtqxgrx0/vCeHHA2NvfFPW+qEH/cqiFURUFG3F+4LGUpCgc0Ireu00ljt4CojmsZH+QICIQx8GVAQ9m242/Ozcbvq0Fgt0O7BeNU4VI7kiw+7v2qEiymASLs9t9ARckhAP0lk1Yo3qmVMsKNHJ+Yze0+Px140nEivI1wcg2BT01CMdXQXlvj0yZxs8ZAAC6NKoFjQLezT8yEL/oNrR4G+qZiDOWgmAdG0t4IL484E9OnUhWVOcEFlDmU+C5tBq6ngPP/aXP3B1VRZ3J+XU/SB5CBIE3kx3KrrFSLnEtMXEswlB3EJ/o4RGWH8Jm/NIGq09uahG/Qy4Qtnugx6KqkSDGz4dMg88ps9rro0G0/xrRwyXdQakHxz+uvZDqkGSs3zmmh3QgnnVlqYYOF0scCPPtookmTUwsFGds9SYPqbWzz+baWfEMXNn+75IeLRL6XTl5MAx6voMQCWn8QrDu44P6Cvc7Vlpi4kJC3U9Qf4cBUTr2AvJkU6lXed1xi0uwZm1EJFnFLHXhQ4cUWgyQVh8t0QkLB26V2p+yHq9pkyNTuMZcS9RntrG5ZaeAmQHsLhzc3D89M/Pp33O96uT7/0dS0BAa4T8VKyA3Jh4bVr7Gj7cCO4pGp1bMEp8lxqIxK/iRPP88jRESONnH3ln725c4T9ooA+vk/1q5YKO9ILjfPd63e90sTR6SAkMknjzTIEkM+37Sp4OI0UMyLBILXNu7AF
x-amz-target:DynamoDB_20120810.GetItem
[DEBUG] 2015-10-02 23:19:01 AWSAuthV4Signer [140647740295040] Signed Headers value:content-length;content-type;host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token;x-amz-target
[DEBUG] 2015-10-02 23:19:01 AWSAuthV4Signer [140647740295040] Canonical Request String: POST
/
content-length:146
content-type:application/x-amz-json-1.0
host:dynamodb.us-east-1.amazonaws.com
user-agent:aws-sdk-cpp/0.9-460-g9f17f3c Linux/3.19.0-30-generic x86_64
x-amz-content-sha256:6a934553ab06147413d42b99f1380e9cf86a52ec3bebb9fda4a44411e6f4e2ed
x-amz-date:20151002T201901Z
x-amz-security-token:AQoDYXdzEN3//////////wEasAWUWP8lIbdUKNIpbGLOIh0eNU3vP9bPo5dGEI3kIr1gpzJ5ANI1ZUJ2Xzx5fMSVuSXi/wIxIE+RL9HxRM/b45XhMjBtn+g+uyoX9g1F9mPjEp+4/dcLxpDb5AcX0h2ZQmbLweAcn8fgPpDhprgZBEftNB8kla3EYmUSltCmy9ytwcibebZ/JEUUJGKi0SBkmAH1PpADtqxgrx0/vCeHHA2NvfFPW+qEH/cqiFURUFG3F+4LGUpCgc0Ireu00ljt4CojmsZH+QICIQx8GVAQ9m242/Ozcbvq0Fgt0O7BeNU4VI7kiw+7v2qEiymASLs9t9ARckhAP0lk1Yo3qmVMsKNHJ+Yze0+Px140nEivI1wcg2BT01CMdXQXlvj0yZxs8ZAAC6NKoFjQLezT8yEL/oNrR4G+qZiDOWgmAdG0t4IL484E9OnUhWVOcEFlDmU+C5tBq6ngPP/aXP3B1VRZ3J+XU/SB5CBIE3kx3KrrFSLnEtMXEswlB3EJ/o4RGWH8Jm/NIGq09uahG/Qy4Qtnugx6KqkSDGz4dMg88ps9rro0G0/xrRwyXdQakHxz+uvZDqkGSs3zmmh3QgnnVlqYYOF0scCPPtookmTUwsFGds9SYPqbWzz+baWfEMXNn+75IeLRL6XTl5MAx6voMQCWn8QrDu44P6Cvc7Vlpi4kJC3U9Qf4cBUTr2AvJkU6lXed1xi0uwZm1EJFnFLHXhQ4cUWgyQVh8t0QkLB26V2p+yHq9pkyNTuMZcS9RntrG5ZaeAmQHsLhzc3D89M/Pp33O96uT7/0dS0BAa4T8VKyA3Jh4bVr7Gj7cCO4pGp1bMEp8lxqIxK/iRPP88jRESONnH3ln725c4T9ooA+vk/1q5YKO9ILjfPd63e90sTR6SAkMknjzTIEkM+37Sp4OI0UMyLBILXNu7AF
x-amz-target:DynamoDB_20120810.GetItem
content-length;content-type;host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token;x-amz-target
6a934553ab06147413d42b99f1380e9cf86a52ec3bebb9fda4a44411e6f4e2ed
[DEBUG] 2015-10-02 23:19:01 AWSAuthV4Signer [140647740295040] Final String to sign: AWS4-HMAC-SHA256
20151002T201901Z
20151002/us-east-1/dynamodb/aws4_request
e57737695dacf1b525de529125429caa1b119b7d13f1b59f941c0dc46158cf54
[DEBUG] 2015-10-02 23:19:01 AWSAuthV4Signer [140647740295040] Final computed signing hash: 9087e18a7bc085468e4f1e2c0e51bf5b12b84acfbc5ee15a3b7b99fcb5d37fbb
[DEBUG] 2015-10-02 23:19:01 AWSAuthV4Signer [140647740295040] Signing request with: AWS4-HMAC-SHA256 Credential=ASIAI7LMNHDGP5V7TZVQ/20151002/us-east-1/dynamodb/aws4_request, SignedHeaders=content-length;content-type;host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token;x-amz-target, Signature=9087e18a7bc085468e4f1e2c0e51bf5b12b84acfbc5ee15a3b7b99fcb5d37fbb
[DEBUG] 2015-10-02 23:19:01 AWSClient [140647740295040] Request Successfully signed
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Making request to https://dynamodb.us-east-1.amazonaws.com
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Including headers:
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] authorization: AWS4-HMAC-SHA256 Credential=ASIAI7LMNHDGP5V7TZVQ/20151002/us-east-1/dynamodb/aws4_request, SignedHeaders=content-length;content-type;host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token;x-amz-target, Signature=9087e18a7bc085468e4f1e2c0e51bf5b12b84acfbc5ee15a3b7b99fcb5d37fbb
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] content-length: 146
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] content-type: application/x-amz-json-1.0
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] host: dynamodb.us-east-1.amazonaws.com
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] user-agent: aws-sdk-cpp/0.9-460-g9f17f3c Linux/3.19.0-30-generic x86_64
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] x-amz-content-sha256: 6a934553ab06147413d42b99f1380e9cf86a52ec3bebb9fda4a44411e6f4e2ed
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] x-amz-date: 20151002T201901Z
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] x-amz-security-token: AQoDYXdzEN3//////////wEasAWUWP8lIbdUKNIpbGLOIh0eNU3vP9bPo5dGEI3kIr1gpzJ5ANI1ZUJ2Xzx5fMSVuSXi/wIxIE+RL9HxRM/b45XhMjBtn+g+uyoX9g1F9mPjEp+4/dcLxpDb5AcX0h2ZQmbLweAcn8fgPpDhprgZBEftNB8kla3EYmUSltCmy9ytwcibebZ/JEUUJGKi0SBkmAH1PpADtqxgrx0/vCeHHA2NvfFPW+qEH/cqiFURUFG3F+4LGUpCgc0Ireu00ljt4CojmsZH+QICIQx8GVAQ9m242/Ozcbvq0Fgt0O7BeNU4VI7kiw+7v2qEiymASLs9t9ARckhAP0lk1Yo3qmVMsKNHJ+Yze0+Px140nEivI1wcg2BT01CMdXQXlvj0yZxs8ZAAC6NKoFjQLezT8yEL/oNrR4G+qZiDOWgmAdG0t4IL484E9OnUhWVOcEFlDmU+C5tBq6ngPP/aXP3B1VRZ3J+XU/SB5CBIE3kx3KrrFSLnEtMXEswlB3EJ/o4RGWH8Jm/NIGq09uahG/Qy4Qtnugx6KqkSDGz4dMg88ps9rro0G0/xrRwyXdQakHxz+uvZDqkGSs3zmmh3QgnnVlqYYOF0scCPPtookmTUwsFGds9SYPqbWzz+baWfEMXNn+75IeLRL6XTl5MAx6voMQCWn8QrDu44P6Cvc7Vlpi4kJC3U9Qf4cBUTr2AvJkU6lXed1xi0uwZm1EJFnFLHXhQ4cUWgyQVh8t0QkLB26V2p+yHq9pkyNTuMZcS9RntrG5ZaeAmQHsLhzc3D89M/Pp33O96uT7/0dS0BAa4T8VKyA3Jh4bVr7Gj7cCO4pGp1bMEp8lxqIxK/iRPP88jRESONnH3ln725c4T9ooA+vk/1q5YKO9ILjfPd63e90sTR6SAkMknjzTIEkM+37Sp4OI0UMyLBILXNu7AF
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] x-amz-target: DynamoDB_20120810.GetItem
[DEBUG] 2015-10-02 23:19:01 CurlHandleContainer [140647740295040] Attempting to acquire curl connection.
[DEBUG] 2015-10-02 23:19:01 CurlHandleContainer [140647740295040] No current connections available in pool. Attempting to create new connections.
[DEBUG] 2015-10-02 23:19:01 CurlHandleContainer [140647740295040] attempting to grow pool size by 2.
[INFO] 2015-10-02 23:19:01 CurlHandleContainer [140647740295040] Pool successfully grown by 2
[DEBUG] 2015-10-02 23:19:01 CurlHandleContainer [140647740295040] Returning connection handle 0x1ced780.
[DEBUG] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] Obtained connection handle 0x1ced780.
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040] HTTP/1.1 100 Continue
[TRACE] 2015-10-02 23:19:01 CurlHttpClient [140647740295040]
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] HTTP/1.1 200 OK
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] x-amzn-RequestId: BGT28LTSKCPSCKTHH1KAFUMJF7VV4KQNSO5AEMVJF66Q9ASUAAJG
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] x-amz-crc32: 2745614147
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Content-Type: application/x-amz-json-1.0
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Content-Length: 2
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Date: Fri, 02 Oct 2015 20:19:01 GMT
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040]
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] 2 bytes written to response.
[DEBUG] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Returned http response code 200.
[DEBUG] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Returned content type application/x-amz-json-1.0.
[DEBUG] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Releasing curl handle 0x1ced780.
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Releasing curl handle 0x1ced780.
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Notifying waiting threads.
[DEBUG] 2015-10-02 23:19:02 AWSClient [140647740295040] Request returned successful response.
[TRACE] 2015-10-02 23:19:02 AWSClient [140647740295040] Request was either successful, or we are now out of retries.
[INFO] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Intializing CurlHandleContainer with size 25.
[TRACE] 2015-10-02 23:19:02 AWSClient [140647740295040] No content body, removing content-type and content-length headers
[DEBUG] 2015-10-02 23:19:02 AWSAuthV4Signer [140647740295040] Calculated sha256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 for payload.
[DEBUG] 2015-10-02 23:19:02 AWSAuthV4Signer [140647740295040] Canonical Header String: host:cognito-sync.us-east-1.amazonaws.com
user-agent:aws-sdk-cpp/0.9-460-g9f17f3c Linux/3.19.0-30-generic x86_64
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20151002T201902Z
x-amz-security-token:AQoDYXdzEN3//////////wEasAWUWP8lIbdUKNIpbGLOIh0eNU3vP9bPo5dGEI3kIr1gpzJ5ANI1ZUJ2Xzx5fMSVuSXi/wIxIE+RL9HxRM/b45XhMjBtn+g+uyoX9g1F9mPjEp+4/dcLxpDb5AcX0h2ZQmbLweAcn8fgPpDhprgZBEftNB8kla3EYmUSltCmy9ytwcibebZ/JEUUJGKi0SBkmAH1PpADtqxgrx0/vCeHHA2NvfFPW+qEH/cqiFURUFG3F+4LGUpCgc0Ireu00ljt4CojmsZH+QICIQx8GVAQ9m242/Ozcbvq0Fgt0O7BeNU4VI7kiw+7v2qEiymASLs9t9ARckhAP0lk1Yo3qmVMsKNHJ+Yze0+Px140nEivI1wcg2BT01CMdXQXlvj0yZxs8ZAAC6NKoFjQLezT8yEL/oNrR4G+qZiDOWgmAdG0t4IL484E9OnUhWVOcEFlDmU+C5tBq6ngPP/aXP3B1VRZ3J+XU/SB5CBIE3kx3KrrFSLnEtMXEswlB3EJ/o4RGWH8Jm/NIGq09uahG/Qy4Qtnugx6KqkSDGz4dMg88ps9rro0G0/xrRwyXdQakHxz+uvZDqkGSs3zmmh3QgnnVlqYYOF0scCPPtookmTUwsFGds9SYPqbWzz+baWfEMXNn+75IeLRL6XTl5MAx6voMQCWn8QrDu44P6Cvc7Vlpi4kJC3U9Qf4cBUTr2AvJkU6lXed1xi0uwZm1EJFnFLHXhQ4cUWgyQVh8t0QkLB26V2p+yHq9pkyNTuMZcS9RntrG5ZaeAmQHsLhzc3D89M/Pp33O96uT7/0dS0BAa4T8VKyA3Jh4bVr7Gj7cCO4pGp1bMEp8lxqIxK/iRPP88jRESONnH3ln725c4T9ooA+vk/1q5YKO9ILjfPd63e90sTR6SAkMknjzTIEkM+37Sp4OI0UMyLBILXNu7AF
[DEBUG] 2015-10-02 23:19:02 AWSAuthV4Signer [140647740295040] Signed Headers value:host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token
[DEBUG] 2015-10-02 23:19:02 AWSAuthV4Signer [140647740295040] Canonical Request String: GET
/identitypools/us-east-1:c361faa4-71ce-4db3-b5fa-fa3618f5bfd2/identities/us-east-1:75923a61-be2b-4d14-9ec1-2a6d985c17d2/datasets
host:cognito-sync.us-east-1.amazonaws.com
user-agent:aws-sdk-cpp/0.9-460-g9f17f3c Linux/3.19.0-30-generic x86_64
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20151002T201902Z
x-amz-security-token:AQoDYXdzEN3//////////wEasAWUWP8lIbdUKNIpbGLOIh0eNU3vP9bPo5dGEI3kIr1gpzJ5ANI1ZUJ2Xzx5fMSVuSXi/wIxIE+RL9HxRM/b45XhMjBtn+g+uyoX9g1F9mPjEp+4/dcLxpDb5AcX0h2ZQmbLweAcn8fgPpDhprgZBEftNB8kla3EYmUSltCmy9ytwcibebZ/JEUUJGKi0SBkmAH1PpADtqxgrx0/vCeHHA2NvfFPW+qEH/cqiFURUFG3F+4LGUpCgc0Ireu00ljt4CojmsZH+QICIQx8GVAQ9m242/Ozcbvq0Fgt0O7BeNU4VI7kiw+7v2qEiymASLs9t9ARckhAP0lk1Yo3qmVMsKNHJ+Yze0+Px140nEivI1wcg2BT01CMdXQXlvj0yZxs8ZAAC6NKoFjQLezT8yEL/oNrR4G+qZiDOWgmAdG0t4IL484E9OnUhWVOcEFlDmU+C5tBq6ngPP/aXP3B1VRZ3J+XU/SB5CBIE3kx3KrrFSLnEtMXEswlB3EJ/o4RGWH8Jm/NIGq09uahG/Qy4Qtnugx6KqkSDGz4dMg88ps9rro0G0/xrRwyXdQakHxz+uvZDqkGSs3zmmh3QgnnVlqYYOF0scCPPtookmTUwsFGds9SYPqbWzz+baWfEMXNn+75IeLRL6XTl5MAx6voMQCWn8QrDu44P6Cvc7Vlpi4kJC3U9Qf4cBUTr2AvJkU6lXed1xi0uwZm1EJFnFLHXhQ4cUWgyQVh8t0QkLB26V2p+yHq9pkyNTuMZcS9RntrG5ZaeAmQHsLhzc3D89M/Pp33O96uT7/0dS0BAa4T8VKyA3Jh4bVr7Gj7cCO4pGp1bMEp8lxqIxK/iRPP88jRESONnH3ln725c4T9ooA+vk/1q5YKO9ILjfPd63e90sTR6SAkMknjzTIEkM+37Sp4OI0UMyLBILXNu7AF
host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
[DEBUG] 2015-10-02 23:19:02 AWSAuthV4Signer [140647740295040] Final String to sign: AWS4-HMAC-SHA256
20151002T201902Z
20151002/us-east-1/cognito-sync/aws4_request
86cea1bedfb491473bbb4809be274870883bc54377ebcf7fcfed0885dec67215
[DEBUG] 2015-10-02 23:19:02 AWSAuthV4Signer [140647740295040] Final computed signing hash: d2541d4f3c1ff69ed366d9965a2cc514511c129de59c1739fdb88102e466dac8
[DEBUG] 2015-10-02 23:19:02 AWSAuthV4Signer [140647740295040] Signing request with: AWS4-HMAC-SHA256 Credential=ASIAI7LMNHDGP5V7TZVQ/20151002/us-east-1/cognito-sync/aws4_request, SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=d2541d4f3c1ff69ed366d9965a2cc514511c129de59c1739fdb88102e466dac8
[DEBUG] 2015-10-02 23:19:02 AWSClient [140647740295040] Request Successfully signed
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Making request to https://cognito-sync.us-east-1.amazonaws.com/identitypools/us-east-1:c361faa4-71ce-4db3-b5fa-fa3618f5bfd2/identities/us-east-1:75923a61-be2b-4d14-9ec1-2a6d985c17d2/datasets
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Including headers:
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] authorization: AWS4-HMAC-SHA256 Credential=ASIAI7LMNHDGP5V7TZVQ/20151002/us-east-1/cognito-sync/aws4_request, SignedHeaders=host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=d2541d4f3c1ff69ed366d9965a2cc514511c129de59c1739fdb88102e466dac8
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] host: cognito-sync.us-east-1.amazonaws.com
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] user-agent: aws-sdk-cpp/0.9-460-g9f17f3c Linux/3.19.0-30-generic x86_64
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] x-amz-date: 20151002T201902Z
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] x-amz-security-token: AQoDYXdzEN3//////////wEasAWUWP8lIbdUKNIpbGLOIh0eNU3vP9bPo5dGEI3kIr1gpzJ5ANI1ZUJ2Xzx5fMSVuSXi/wIxIE+RL9HxRM/b45XhMjBtn+g+uyoX9g1F9mPjEp+4/dcLxpDb5AcX0h2ZQmbLweAcn8fgPpDhprgZBEftNB8kla3EYmUSltCmy9ytwcibebZ/JEUUJGKi0SBkmAH1PpADtqxgrx0/vCeHHA2NvfFPW+qEH/cqiFURUFG3F+4LGUpCgc0Ireu00ljt4CojmsZH+QICIQx8GVAQ9m242/Ozcbvq0Fgt0O7BeNU4VI7kiw+7v2qEiymASLs9t9ARckhAP0lk1Yo3qmVMsKNHJ+Yze0+Px140nEivI1wcg2BT01CMdXQXlvj0yZxs8ZAAC6NKoFjQLezT8yEL/oNrR4G+qZiDOWgmAdG0t4IL484E9OnUhWVOcEFlDmU+C5tBq6ngPP/aXP3B1VRZ3J+XU/SB5CBIE3kx3KrrFSLnEtMXEswlB3EJ/o4RGWH8Jm/NIGq09uahG/Qy4Qtnugx6KqkSDGz4dMg88ps9rro0G0/xrRwyXdQakHxz+uvZDqkGSs3zmmh3QgnnVlqYYOF0scCPPtookmTUwsFGds9SYPqbWzz+baWfEMXNn+75IeLRL6XTl5MAx6voMQCWn8QrDu44P6Cvc7Vlpi4kJC3U9Qf4cBUTr2AvJkU6lXed1xi0uwZm1EJFnFLHXhQ4cUWgyQVh8t0QkLB26V2p+yHq9pkyNTuMZcS9RntrG5ZaeAmQHsLhzc3D89M/Pp33O96uT7/0dS0BAa4T8VKyA3Jh4bVr7Gj7cCO4pGp1bMEp8lxqIxK/iRPP88jRESONnH3ln725c4T9ooA+vk/1q5YKO9ILjfPd63e90sTR6SAkMknjzTIEkM+37Sp4OI0UMyLBILXNu7AF
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Attempting to acquire curl connection.
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] No current connections available in pool. Attempting to create new connections.
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] attempting to grow pool size by 2.
[INFO] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Pool successfully grown by 2
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Returning connection handle 0x1d203f0.
[DEBUG] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Obtained connection handle 0x1d203f0.
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] HTTP/1.1 403 Forbidden
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] x-amzn-RequestId: d283824f-6942-11e5-a7ec-813835209a4f
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] x-amzn-ErrorType: InvalidSignatureException:
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] x-amzn-ErrorMessage: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. The Canonical String for this request should have been 'GET /identitypools/us-east-1%3Ac361faa4-71ce-4db3-b5fa-fa3618f5bfd2/identities/us-east-1%3A75923a61-be2b-4d14-9ec1-2a6d985c17d2/datasets host:cognito-sync.us-east-1.amazonaws.com user-agent:aws-sdk-cpp/0.9-460-g9f17f3c Linux/3.19.0-30-generic x86_64 x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20151002T201902Z x-amz-security-token:AQoDYXdzEN3//////////wEasAWUWP8lIbdUKNIpbGLOIh0eNU3vP9bPo5dGEI3kIr1gpzJ5ANI1ZUJ2Xzx5fMSVuSXi/wIxIE+RL9HxRM/b45XhMjBtn+g+uyoX9g1F9mPjEp+4/dcLxpDb5AcX0h2ZQmbLweAcn8fgPpDhprgZBEftNB8kla3EYmUSltCmy9ytwcibebZ/JEUUJGKi0SBkmAH1PpADtqxgrx0/vCeHHA2NvfFPW+qEH/cqiFURUFG3F+4LGUpCgc0Ireu00ljt4CojmsZH+QICIQx8GVAQ9m242/Ozcbvq0Fgt0O7BeNU4VI7kiw+7v2qEiymASLs9t9ARckhAP0lk1Yo3qmVMsKNHJ+Yze0+Px140nEivI1wcg2BT01CMdXQXlvj0yZxs8ZAAC6NKoFjQLezT8yEL/oNrR4G+qZiDOWgmAdG0t4IL484E9OnUhWVOcEFlDmU+C5tBq6ngPP/aXP3B1VRZ3J+XU/SB5CBIE3kx3KrrFSLnEtMXEswlB3EJ/o4RGWH8Jm/NIGq09uahG/Qy4Qtnugx6KqkSDGz4dMg88ps9rro0G0/xrRwyXdQakHxz+uvZDqkGSs3zmmh3QgnnVlqYYOF0scCPPtookmTUwsFGds9SYPqbWzz+baWfEMXNn+75IeLRL6XTl5MAx6voMQCWn8QrDu44P6Cvc7Vlpi4kJC3U9Qf4cBUTr2AvJkU6lXed1xi0uwZm1EJFnFLHXhQ4cUWgyQVh8t0QkLB26V2p+yHq9pkyNTuMZcS9RntrG5ZaeAmQHsLhzc3D89M/Pp33O96uT7/0dS0BAa4T8VKyA3Jh4bVr7Gj7cCO4pGp1bMEp8lxqIxK/iRPP88jRESONnH3ln725c4T9ooA+vk/1q5YKO9ILjfPd63e90sTR6SAkMknjzTIEkM+37Sp4OI0UMyLBILXNu7AF host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' The String-to-Sign should have been 'AWS4-HMAC-SHA256 20151002T201902Z 20151002/us-east-1/cognito-sync/aws4_request 292fc6cf98dca675361aa1ebc3a941ad3853e7b9a5703953d2552cd459f273da'
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Content-Type: application/json
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Content-Length: 1928
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Date: Fri, 02 Oct 2015 20:19:02 GMT
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040]
[TRACE] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] 1928 bytes written to response.
[DEBUG] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Returned http response code 403.
[DEBUG] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Returned content type application/json.
[DEBUG] 2015-10-02 23:19:02 CurlHttpClient [140647740295040] Releasing curl handle 0x1d203f0.
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Releasing curl handle 0x1d203f0.
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Notifying waiting threads.
[DEBUG] 2015-10-02 23:19:02 AWSClient [140647740295040] Request returned error. Attempting to generate appropriate error codes from response
[TRACE] 2015-10-02 23:19:02 AWSClient [140647740295040] Error response is {
"message" : "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.\n\nThe Canonical String for this request should have been\n'GET\n/identitypools/us-east-1%3Ac361faa4-71ce-4db3-b5fa-fa3618f5bfd2/identities/us-east-1%3A75923a61-be2b-4d14-9ec1-2a6d985c17d2/datasets\n\nhost:cognito-sync.us-east-1.amazonaws.com\nuser-agent:aws-sdk-cpp/0.9-460-g9f17f3c Linux/3.19.0-30-generic x86_64\nx-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\nx-amz-date:20151002T201902Z\nx-amz-security-token:AQoDYXdzEN3//////////wEasAWUWP8lIbdUKNIpbGLOIh0eNU3vP9bPo5dGEI3kIr1gpzJ5ANI1ZUJ2Xzx5fMSVuSXi/wIxIE+RL9HxRM/b45XhMjBtn+g+uyoX9g1F9mPjEp+4/dcLxpDb5AcX0h2ZQmbLweAcn8fgPpDhprgZBEftNB8kla3EYmUSltCmy9ytwcibebZ/JEUUJGKi0SBkmAH1PpADtqxgrx0/vCeHHA2NvfFPW+qEH/cqiFURUFG3F+4LGUpCgc0Ireu00ljt4CojmsZH+QICIQx8GVAQ9m242/Ozcbvq0Fgt0O7BeNU4VI7kiw+7v2qEiymASLs9t9ARckhAP0lk1Yo3qmVMsKNHJ+Yze0+Px140nEivI1wcg2BT01CMdXQXlvj0yZxs8ZAAC6NKoFjQLezT8yEL/oNrR4G+qZiDOWgmAdG0t4IL484E9OnUhWVOcEFlDmU+C5tBq6ngPP/aXP3B1VRZ3J+XU/SB5CBIE3kx3KrrFSLnEtMXEswlB3EJ/o4RGWH8Jm/NIGq09uahG/Qy4Qtnugx6KqkSDGz4dMg88ps9rro0G0/xrRwyXdQakHxz+uvZDqkGSs3zmmh3QgnnVlqYYOF0scCPPtookmTUwsFGds9SYPqbWzz+baWfEMXNn+75IeLRL6XTl5MAx6voMQCWn8QrDu44P6Cvc7Vlpi4kJC3U9Qf4cBUTr2AvJkU6lXed1xi0uwZm1EJFnFLHXhQ4cUWgyQVh8t0QkLB26V2p+yHq9pkyNTuMZcS9RntrG5ZaeAmQHsLhzc3D89M/Pp33O96uT7/0dS0BAa4T8VKyA3Jh4bVr7Gj7cCO4pGp1bMEp8lxqIxK/iRPP88jRESONnH3ln725c4T9ooA+vk/1q5YKO9ILjfPd63e90sTR6SAkMknjzTIEkM+37Sp4OI0UMyLBILXNu7AF\n\nhost;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'\n\nThe String-to-Sign should have been\n'AWS4-HMAC-SHA256\n20151002T201902Z\n20151002/us-east-1/cognito-sync/aws4_request\n292fc6cf98dca675361aa1ebc3a941ad3853e7b9a5703953d2552cd459f273da'\n"
}
[WARN] 2015-10-02 23:19:02 AWSErrorMarshaller [140647740295040] Encountered Unknown AWSError
InvalidSignatureException:
The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
The Canonical String for this request should have been
'GET
/identitypools/us-east-1%3Ac361faa4-71ce-4db3-b5fa-fa3618f5bfd2/identities/us-east-1%3A75923a61-be2b-4d14-9ec1-2a6d985c17d2/datasets
host:cognito-sync.us-east-1.amazonaws.com
user-agent:aws-sdk-cpp/0.9-460-g9f17f3c Linux/3.19.0-30-generic x86_64
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20151002T201902Z
x-amz-security-token:AQoDYXdzEN3//////////wEasAWUWP8lIbdUKNIpbGLOIh0eNU3vP9bPo5dGEI3kIr1gpzJ5ANI1ZUJ2Xzx5fMSVuSXi/wIxIE+RL9HxRM/b45XhMjBtn+g+uyoX9g1F9mPjEp+4/dcLxpDb5AcX0h2ZQmbLweAcn8fgPpDhprgZBEftNB8kla3EYmUSltCmy9ytwcibebZ/JEUUJGKi0SBkmAH1PpADtqxgrx0/vCeHHA2NvfFPW+qEH/cqiFURUFG3F+4LGUpCgc0Ireu00ljt4CojmsZH+QICIQx8GVAQ9m242/Ozcbvq0Fgt0O7BeNU4VI7kiw+7v2qEiymASLs9t9ARckhAP0lk1Yo3qmVMsKNHJ+Yze0+Px140nEivI1wcg2BT01CMdXQXlvj0yZxs8ZAAC6NKoFjQLezT8yEL/oNrR4G+qZiDOWgmAdG0t4IL484E9OnUhWVOcEFlDmU+C5tBq6ngPP/aXP3B1VRZ3J+XU/SB5CBIE3kx3KrrFSLnEtMXEswlB3EJ/o4RGWH8Jm/NIGq09uahG/Qy4Qtnugx6KqkSDGz4dMg88ps9rro0G0/xrRwyXdQakHxz+uvZDqkGSs3zmmh3QgnnVlqYYOF0scCPPtookmTUwsFGds9SYPqbWzz+baWfEMXNn+75IeLRL6XTl5MAx6voMQCWn8QrDu44P6Cvc7Vlpi4kJC3U9Qf4cBUTr2AvJkU6lXed1xi0uwZm1EJFnFLHXhQ4cUWgyQVh8t0QkLB26V2p+yHq9pkyNTuMZcS9RntrG5ZaeAmQHsLhzc3D89M/Pp33O96uT7/0dS0BAa4T8VKyA3Jh4bVr7Gj7cCO4pGp1bMEp8lxqIxK/iRPP88jRESONnH3ln725c4T9ooA+vk/1q5YKO9ILjfPd63e90sTR6SAkMknjzTIEkM+37Sp4OI0UMyLBILXNu7AF
host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
The String-to-Sign should have been
'AWS4-HMAC-SHA256
20151002T201902Z
20151002/us-east-1/cognito-sync/aws4_request
292fc6cf98dca675361aa1ebc3a941ad3853e7b9a5703953d2552cd459f273da'
:
[TRACE] 2015-10-02 23:19:02 AWSClient [140647740295040] Request was either successful, or we are now out of retries.
[ERROR] 2015-10-02 23:19:02 CognitoTest [140647740295040] Failed to list datasets: Unable to parse ExceptionName: InvalidSignatureException: Message: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
The Canonical String for this request should have been
'GET
/identitypools/us-east-1%3Ac361faa4-71ce-4db3-b5fa-fa3618f5bfd2/identities/us-east-1%3A75923a61-be2b-4d14-9ec1-2a6d985c17d2/datasets
host:cognito-sync.us-east-1.amazonaws.com
user-agent:aws-sdk-cpp/0.9-460-g9f17f3c Linux/3.19.0-30-generic x86_64
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20151002T201902Z
x-amz-security-token:AQoDYXdzEN3//////////wEasAWUWP8lIbdUKNIpbGLOIh0eNU3vP9bPo5dGEI3kIr1gpzJ5ANI1ZUJ2Xzx5fMSVuSXi/wIxIE+RL9HxRM/b45XhMjBtn+g+uyoX9g1F9mPjEp+4/dcLxpDb5AcX0h2ZQmbLweAcn8fgPpDhprgZBEftNB8kla3EYmUSltCmy9ytwcibebZ/JEUUJGKi0SBkmAH1PpADtqxgrx0/vCeHHA2NvfFPW+qEH/cqiFURUFG3F+4LGUpCgc0Ireu00ljt4CojmsZH+QICIQx8GVAQ9m242/Ozcbvq0Fgt0O7BeNU4VI7kiw+7v2qEiymASLs9t9ARckhAP0lk1Yo3qmVMsKNHJ+Yze0+Px140nEivI1wcg2BT01CMdXQXlvj0yZxs8ZAAC6NKoFjQLezT8yEL/oNrR4G+qZiDOWgmAdG0t4IL484E9OnUhWVOcEFlDmU+C5tBq6ngPP/aXP3B1VRZ3J+XU/SB5CBIE3kx3KrrFSLnEtMXEswlB3EJ/o4RGWH8Jm/NIGq09uahG/Qy4Qtnugx6KqkSDGz4dMg88ps9rro0G0/xrRwyXdQakHxz+uvZDqkGSs3zmmh3QgnnVlqYYOF0scCPPtookmTUwsFGds9SYPqbWzz+baWfEMXNn+75IeLRL6XTl5MAx6voMQCWn8QrDu44P6Cvc7Vlpi4kJC3U9Qf4cBUTr2AvJkU6lXed1xi0uwZm1EJFnFLHXhQ4cUWgyQVh8t0QkLB26V2p+yHq9pkyNTuMZcS9RntrG5ZaeAmQHsLhzc3D89M/Pp33O96uT7/0dS0BAa4T8VKyA3Jh4bVr7Gj7cCO4pGp1bMEp8lxqIxK/iRPP88jRESONnH3ln725c4T9ooA+vk/1q5YKO9ILjfPd63e90sTR6SAkMknjzTIEkM+37Sp4OI0UMyLBILXNu7AF
host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
The String-to-Sign should have been
'AWS4-HMAC-SHA256
20151002T201902Z
20151002/us-east-1/cognito-sync/aws4_request
292fc6cf98dca675361aa1ebc3a941ad3853e7b9a5703953d2552cd459f273da'
(InvalidSignatureException:)
[INFO] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Cleaning up CurlHandleContainer.
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Cleaning up 0x1d203f0.
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Cleaning up 0x1d17740.
[INFO] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Cleaning up CurlHandleContainer.
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Cleaning up 0x1ced780.
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Cleaning up 0x1ce4ad0.
[INFO] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Cleaning up CurlHandleContainer.
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Cleaning up 0x1cb59f0.
[DEBUG] 2015-10-02 23:19:02 CurlHandleContainer [140647740295040] Cleaning up 0x1cacd40.
from aws-sdk-cpp.
Sorry for the silence. We have potential fix but we are trying to determine if it is the most correct. Replace AWSAuthSigner.cpp#67 with this
URI encodedURI;
encodedURI.SetPath(request.GetUri().GetPath(), true);
signingStringStream << NEWLINE << encodedURI.GetPath() << NEWLINE;
This worked for a minimal test of ListDatasets and did not appear to break our other tests.
Please let us know if this works for you while we ensure this is the proper fix.
from aws-sdk-cpp.
Thanks for the fix. I tested with ListDatasets, ListRecords and UpdateRecords - everything works fine.
from aws-sdk-cpp.
I've just pushed an update that should fix this for you. Can you give it a try?
from aws-sdk-cpp.
This is an old issue, but I am getting the exact same error when attempting to run Aws::CognitoSync::CognitoSyncClient::ListDatasets.
I have simplified the issue to the following code which produces the linked log:
log
If I were to insert code asking to list lambda functions in the AWS console immediatly before or after the ListDatasets call it works correctly, leading me to beilve the credentials are correct.
Additionally if I use the AWS CLI with the same keys, it correctly returns my datasets.
I ensured the code @JonathanHenson put on October 20, 2015 was in place but still getting this error?
int main()
{
Aws::Utils::Logging::InitializeAWSLogging(Aws::MakeShared<Aws::Utils::Logging::DefaultLogSystem>("ALLOCATION_TAG", Aws::Utils::Logging::LogLevel::Trace, "aws_sdk_"));
Aws::Client::ClientConfiguration config;
config.scheme = Aws::Http::Scheme::HTTPS;
config.connectTimeoutMs = 30000;
config.requestTimeoutMs = 30000;
config.region = Aws::Region::US_EAST_1;
Aws::SDKOptions options;
Aws::InitAPI(options);
//for issue-testing purposes, I hardcoded the accessID and secret key.
Aws::Auth::AWSCredentials credentials(Aws::String(accessIDKey), Aws::String(secretKey));
Aws::CognitoSync::CognitoSyncClient syncClient(credentials, config);
Aws::CognitoSync::Model::ListDatasetsRequest listDatasetRequest;
listDatasetRequest.SetIdentityPoolId(poolID);
listDatasetRequest.SetIdentityId(userID);
Aws::CognitoSync::Model::ListDatasetsOutcome listDatasetOutcome = syncClient.ListDatasets(listDatasetRequest);
if(listDatasetOutcome.IsSuccess() == false)
{
std::cout << "List sync Records failed" << std::endl;
std::cout << "Error: " + listDatasetOutcome.GetError().GetMessage() << std::endl;
}
else
{
std::cout << "List sync Records Success" << std::endl;
}
Aws::ShutdownAPI(options);
Aws::Utils::Logging::ShutdownAWSLogging();
return 0;
}
from aws-sdk-cpp.
Related Issues (20)
- Compiling a static library with cmake reports an error, indicating missing aws-c-common and other related DLLs HOT 10
- buffer_pool->mem_limit error with CRT HOT 5
- Add SDKOption for default Credentials Provider Chain HOT 1
- SetContentMD5 not being set for PUT requests HOT 8
- CopyObjectRequest wrong host URL HOT 1
- IMDSv2 token not being handled properly HOT 8
- Enabling non-blocking S3Client calls HOT 2
- test case failed while using external project in cmake HOT 2
- linker error when building with static libs and using s3-crt HOT 9
- Does not build using VS 2022 HOT 4
- IAMClient::GetServiceName invalid during Cmake HOT 3
- Can not compile transcribe with CURL support with Visual Studio 2022 HOT 1
- Huge RAM usage on big file uploads HOT 7
- callback set in SetDataSentEventHandler is not called on S3Crt PutRequest HOT 2
- Cannot build sdk on a Amazon Linux 2023 based Container after 1.11.211 Version Tag HOT 9
- The S3 protocol does not support retrieving multiple attributes through GetObjectAttributes. HOT 3
- Wrong OpenSSL CMake targets used HOT 2
- Kinesis Video Stream hangs on getMedia request HOT 5
- Mandatory meta data for PUT S3 presigned url unlike javascript sdk HOT 3
- S3Client instantiation extremely slow HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-cpp.