Malformed calls from JS : field sizes are different [[8,39],[4,0]
The APIs has been updated in version 6. Changing from callback (version 5 uses callback) to promise worked for me. I mean change -
Contacts.getAll((err, contacts) => { });
to -
Contacts.getAll()
.then((contacts) => {
// work with contacts
})
.catch((e) => { //handle error })
With the updated API version, you need to change the callback syntax to promise .then and .catch such as
Contacts.getAll()
.then(contacts => { //your code here })
.catch(e => { //handle error })