{"action":"opened","issue":{"url":"https://api.github.com/repos/awslabs/aws-sdk-ios-samples/issues/76","repository_url":"https://api.github.com/repos/awslabs/aws-sdk-ios-samples","labels_url":"https://api.github.com/repos/awslabs/aws-sdk-ios-samples/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-sdk-ios-samples/issues/76/comments","events_url":"https://api.github.com/repos/awslabs/aws-sdk-ios-samples/issues/76/events","html_url":"https://github.com/awslabs/aws-sdk-ios-samples/issues/76","id":154207948,"number":76,"title":"issue while sync ","user":{"login":"Richa0305","id":10761678,"avatar_url":"https://avatars.githubusercontent.com/u/10761678?v=3","gravatar_id":"","url":"https://api.github.com/users/Richa0305","html_url":"https://github.com/Richa0305","followers_url":"https://api.github.com/users/Richa0305/followers","following_url":"https://api.github.com/users/Richa0305/following{/other_user}","gists_url":"https://api.github.com/users/Richa0305/gists{/gist_id}","starred_url":"https://api.github.com/users/Richa0305/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Richa0305/subscriptions","organizations_url":"https://api.github.com/users/Richa0305/orgs","repos_url":"https://api.github.com/users/Richa0305/repos","events_url":"https://api.github.com/users/Richa0305/events{/privacy}","received_events_url":"https://api.github.com/users/Richa0305/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-11T10:16:01Z","updated_at":"2016-05-11T10:16:01Z","closed_at":null,"body":"Hi All,\r\n\r\nI am trying to run this AWS cognito sample app. I can add new data set but as soon as i try to sync/refresh i get this below error. \r\nAnd Here is the steps i did - \r\n1.Downloaded the sample app from github.\r\n2.Installed AWSCognito using pod as given \r\n3.And Created a identity pool in Amazon cognito console \r\n4.and updated the constants in Constants.swift - \r\n        static let COGNITO_REGIONTYPE = AWSRegionType.USEast1 \r\n        static let COGNITO_IDENTITY_POOL_ID = \"us-east-1_XXXXXXXXX\"\r\n\r\n2016-05-11 15:43:49.643 CognitoSyncDemo[18352:6625488] AWSiOSSDKv2 [Debug] AWSCognitoSQLiteManager.m line:179 | __51-[AWSCognitoSQLiteManager initializeDatasetTables:]_block_invoke | sqlString = 'INSERT INTO CognitoMetadata(Dataset,ModifiedBy,IdentityId) VALUES (?,?,?)'\r\n2016-05-11 15:43:49.643 CognitoSyncDemo[18352:6625488] AWSiOSSDKv2 [Debug] AWSCognitoSQLiteManager.m line:282 | __53-[AWSCognitoSQLiteManager loadDatasetMetadata:error:]_block_invoke | query = 'SELECT LastSyncCount, LastModified, ModifiedBy, CreationDate, DataStorage, RecordCount FROM CognitoMetadata WHERE IdentityId = ? and Dataset = ?'\r\n2016-05-11 15:43:49.647 CognitoSyncDemo[18352:6625968] AWSiOSSDKv2 [Verbose] AWSURLRequestSerialization.m line:103 | -[AWSJSONRequestSerializer serializeRequest:headers:parameters:] | Request body: [{\"IdentityPoolId\":\"us-east-1_1kBTIfzWu\"}]\r\n2016-05-11 15:43:50.942 CognitoSyncDemo[18352:6626097] AWSiOSSDKv2 [Debug] AWSURLResponseSerialization.m line:74 | -[AWSJSONResponseSerializer responseObjectForResponse:originalRequest:currentRequest:data:error:] | Response header: [{\r\n    Connection = close;\r\n    \"Content-Length\" = 218;\r\n    \"Content-Type\" = \"application/x-amz-json-1.1\";\r\n    Date = \"Wed, 11 May 2016 10:13:50 GMT\";\r\n    \"x-amzn-ErrorMessage\" = \"1 validation error detected: Value 'us-east-1_1kBTIfzWu' at 'identityPoolId' failed to satisfy constraint: Member must satisfy regular expression pattern: [\\\\w-]+:[0-9a-f-]+\";\r\n    \"x-amzn-ErrorType\" = \"ValidationException:\";\r\n    \"x-amzn-RequestId\" = \"0ec70838-1761-11e6-91c2-e77b976ab658\";\r\n}]\r\n2016-05-11 15:43:50.942 CognitoSyncDemo[18352:6626097] AWSiOSSDKv2 [Verbose] AWSURLResponseSerialization.m line:79 | -[AWSJSONResponseSerializer responseObjectForResponse:originalRequest:currentRequest:data:error:] | Response body: [{\"__type\":\"ValidationException\",\"message\":\"1 validation error detected: Value 'us-east-1_1kBTIfzWu' at 'identityPoolId' failed to satisfy constraint: Member must satisfy regular expression pattern: [\\\\w-]+:[0-9a-f-]+\"}]\r\n2016-05-11 15:43:50.943 CognitoSyncDemo[18352:6626097] AWSiOSSDKv2 [Error] AWSIdentityProvider.m line:185 | __51-[AWSAbstractCognitoIdentityProvider getIdentityId]_block_invoke169 | GetId failed. Error is [Error Domain=com.amazonaws.AWSCognitoIdentityErrorDomain Code=0 \"(null)\" UserInfo={__type=ValidationException, message=1 validation error detected: Value 'us-east-1_1kBTIfzWu' at 'identityPoolId' failed to satisfy constraint: Member must satisfy regular expression pattern: [\\w-]+:[0-9a-f-]+}]\r\n2016-05-11 15:43:50.943 CognitoSyncDemo[18352:6625968] AWSiOSSDKv2 [Verbose] AWSURLRequestSerialization.m line:103 | -[AWSJSONRequestSerializer serializeRequest:headers:parameters:] | Request body: [{\"IdentityPoolId\":\"us-east-1_1kBTIfzWu\"}]\r\n2016-05-11 15:43:52.168 CognitoSyncDemo[18352:6626097] AWSiOSSDKv2 [Debug] AWSURLResponseSerialization.m line:74 | -[AWSJSONResponseSerializer responseObjectForResponse:originalRequest:currentRequest:data:error:] | Response header: [{\r\n    Connection = close;\r\n    \"Content-Length\" = 218;\r\n    \"Content-Type\" = \"application/x-amz-json-1.1\";\r\n    Date = \"Wed, 11 May 2016 10:13:51 GMT\";\r\n    \"x-amzn-ErrorMessage\" = \"1 validation error detected: Value 'us-east-1_1kBTIfzWu' at 'identityPoolId' failed to satisfy constraint: Member must satisfy regular expression pattern: [\\\\w-]+:[0-9a-f-]+\";\r\n    \"x-amzn-ErrorType\" = \"ValidationException:\";\r\n    \"x-amzn-RequestId\" = \"0f7792fc-1761-11e6-9ad4-59d8bf47e69e\";\r\n}]\r\n2016-05-11 15:43:52.168 CognitoSyncDemo[18352:6626097] AWSiOSSDKv2 [Verbose] AWSURLResponseSerialization.m line:79 | -[AWSJSONResponseSerializer responseObjectForResponse:originalRequest:currentRequest:data:error:] | Response body: [{\"__type\":\"ValidationException\",\"message\":\"1 validation error detected: Value 'us-east-1_1kBTIfzWu' at 'identityPoolId' failed to satisfy constraint: Member must satisfy regular expression pattern: [\\\\w-]+:[0-9a-f-]+\"}]\r\n2016-05-11 15:43:52.168 CognitoSyncDemo[18352:6626097] AWSiOSSDKv2 [Error] AWSIdentityProvider.m line:185 | __51-[AWSAbstractCognitoIdentityProvider getIdentityId]_block_invoke169 | GetId failed. Error is [Error Domain=com.amazonaws.AWSCognitoIdentityErrorDomain Code=0 \"(null)\" UserInfo={__type=ValidationException, message=1 validation error detected: Value 'us-east-1_1kBTIfzWu' at 'identityPoolId' failed to satisfy constraint: Member must satisfy regular expression pattern: [\\w-]+:[0-9a-f-]+}]\r\n2016-05-11 15:43:52.169 CognitoSyncDemo[18352:6626097] AWSiOSSDKv2 [Error] AWSCognitoService.m line:176 | __36-[AWSCognito refreshDatasetMetadata]_block_invoke147 | Unable to list datasets: Error Domain=com.amazon.cognito.AWSCognitoErrorDomain Code=-4000 \"(null)\"\r\n\r\nWhat am i missing? I am very new to AWS services, any guidance would be much appreciated.\r\n\r\nThanks,\r\nRicha"}}