amazon-cognito-js
amazon-cognito-js copied to clipboard
Syncronizing with integers in datasets causes errors
I realize that integers probably don't belong in datasets but the fact that put and get accepts them and the error only shows up when you synchronize was a little frustrating. Then tracing down the issue was difficult because the error in the console said "Error: Synchronized failed: exceeded maximum retry count.". So there was no indication of why it had failed.
dataset.put('newRecord', 12, function(err, record) {
console.log(record);
// Synchronize at some point... EXPLOSION!
});
edit: styling js
This may be a duplicate of https://github.com/aws/amazon-cognito-js/issues/6