amazon-archives/amazon-cognito-js

Syncronizing with integers in datasets causes errors

Opened this issue · 1 comments

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 #6