user966391 user966391 - 25 days ago 6
Android Question

facebook cognito android eaxmple notworking

I have implemented facebook android cognito example cognitosyncdemo as per the instructions, i am getting following error, when trying sync the dataset,

E/ListDatasetsActivity(8541): Caused by: com.amazonaws.AmazonServiceException: 1 validation error detected: Value '{}' at 'logins' failed to satisfy constraint: Map value must satisfy constraint: Member must have length less than or equal to 2048, Member must have length greater than or equal to 1, Member must satisfy regular expression pattern: [\S]+

Note: The code is exactly as per the example cognitodemosync. from github

Answer Source

As noted on the GitHub issue, the issue was resolved by setting the correct values in the logins map.