I am getting this error logs in public environment, quite consistently for around 0.1% of the sessions.
I am using Dexie. https://dexie.org/
class DexieDB extends Dexie {
cacheData!: Table<CacheData>;
private static instance: DexieDB;
private constructor() {
super('DexieDB');
const store = { ...cacheDataSchema };
this.version(2).stores(store);
}
public static get Instance(): DexieDB {
if (!this.instance) {
this.instance = new this();
// Open the database
** this.instance.open().catch((e) => {**
logOpenDBFailed(e);
});
}
return this.instance;
}
}
export const dexieDB = DexieDB.Instance;
The line in bold is throwing this exception. I dont find any satisfactory repro steps or reasons of this exception on Google search. If anyone has any info or pointers please let me know. I dont know how to reproduce this issue. Thanks in advance!
Trying to find the repro steps but without any luck. As per google search, I saw this post https://jasonsavard.com/forum/discussion/4233/unknownerror-internal-error-opening-backing-store-for-indexeddb-open but none of the reasons mentioned here are sounding plausible in my scenario. most of the crashes are on windows machine