the meaning of error messages:

312 views
Skip to first unread message

Florin Onciu

unread,
May 27, 2014, 5:49:30 AM5/27/14
to dex...@googlegroups.com
Hi, I tried to update an object store with both WriteableTable.update() and WriteableTable.put() but in each case I get an error. 
It must be something wrong with my data object, but I am not sure what. 

When I use WriteableTable.update() the error is simply: "MultiModifyError" and when I use WriteableTable.put() the error is: "DataCloneError: Failed to execute 'put' on 'IDBObjectStore'. An object could not be cloned". 

Do you know what could be wrong?

David Fahlander

unread,
May 27, 2014, 8:34:57 AM5/27/14
to Florin Onciu, dex...@googlegroups.com

Could be that the object contains non clonable properties such as undefined, Dom nodes, Infinity or other non 'plain data' properties. Could also be a recursive reference. Test if you can do JSON.stringify () on the object. That would normally also fail.

--
You received this message because you are subscribed to the Google Groups "Dexie.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dexiejs+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/dexiejs.
To view this discussion on the web visit https://groups.google.com/d/msgid/dexiejs/30d7579a-9a2c-42bc-b24c-678d4742ea60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages