Code like this:
var transaction = db.transaction(["main"], IDBTransaction.READ_WRITE);
var store = transaction.objectStore("main");
var request = store.add(object);
It work correctly in Firefox, but in Chrome it throws “DATA_ERR: DOM IDBDatabase Exception 5” at the last line. What does this exception means? How to fix it?
If your ObjectStore has autoIncrement:true, Chrome throws this error.
[source]