IndexedDBShim icon indicating copy to clipboard operation
IndexedDBShim copied to clipboard

Attempt to iterate a cursor that doesn't exist

Open nbrustein opened this issue 3 years ago • 0 comments

Rarely, when trying to write to the database in the wild, we see a Attempt to iterate a cursor that doesn't exist error in our error reporting services.

I found this issue that sounded kind of similar. But that issue seemed to only be happening to people when the app was backgrounded. In our case it's happening when someone is actively using the app.

Do you have any idea what could lead to an error like this?

I haven't tried just building in a retry for this error, but maybe that's worth it?

I'm using Dexie, cordova-sqlite-storage and setting things like this:

const shim = {};
setGlobalVars(shim, { win: window.sqlitePlugin /* DEBUG: true */ });

dexieConfig.indexedDB = shim.indexedDB;
dexieConfig.IDBKeyRange = shim.IDBKeyRange;

nbrustein avatar Nov 03 '22 18:11 nbrustein