amazon-archives / amazon-cognito-js

Amazon Cognito Sync Manager for JavaScript
http://aws.amazon.com/cognito
Apache License 2.0
200 stars 83 forks source link

Error: Synchronize failed: exceeded maximum retry count. #34

Closed mgoria closed 7 years ago

mgoria commented 8 years ago

I'm receiving this error after I set onDatasetsMerged callback to return true, and according to README.md it should continue the synchronization process:

dataset.synchronize({
  // ...

  onDatasetsMerged: (dataset, datasetNames, callback) => {
    return callback(true);
  }
});

Can someone help me understand how onDatasetsMerged method works, should I write the logic to merge datasets or it's merged automatically ?

A basic code snippet would be much appreciated :)

Thanks!

itrestian commented 8 years ago

Hi!

See answer below on the cases when onDatasetsMerged will be called:

https://forums.aws.amazon.com/thread.jspa?threadID=179708

Ionut.

mgoria commented 8 years ago

@itrestian Thanks, I'll take a look.