Open dap129 opened 7 years ago
I am also getting this error.
EDIT: After some more testing it appears that this is only an issue when attempting to retrieve datasets that were created in the AWS console. I ran some code that created a dataset, then tried getting it and it worked. Reloading the AWS console shows the newly created dataset as well. So I think this may be not be an issue unique to amazon-cognito-js
but one that is linked to how the AWS console creates datasets.
After logging in and getting authenticated credentials for a user I want to create/read datasets for the user in cognito identity pool. I am able to create and read datasets from identity pool after which the records are getting stored in the browser's localStorage. But using 'get' and 'put' methods of "CognitoSyncDataset" in 'amazon-cognito-js' sdk, I am getting values for 'put' but getting "undefined" for get even though it is there in the localStorage. Here's my code: