Internal error opening backing store for indexedDB.open
Asked Answered
S

3

8

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

Strata answered 26/10, 2022 at 11:32 Comment(1)
Is this by any chance happening mostly on iOS devices with versions 14.5 or later? Total guess but maybe this involves Apple ITP.Scallop
M
2

Happened to me in chrome (on Mac). Force quit to chrome or restart the Mac solved to problem

Marko answered 21/6, 2023 at 10:37 Comment(0)
I
1

The call to Dexie open() will fail when running Firefox in private mode because it does not support indexedDB in private mode. All other browsers except support IndexedDB in their private modes and treats the data as temporary for the private session only. Could this be the reason?

Ivie answered 26/10, 2022 at 12:15 Comment(2)
By looking at the telemetry almost all the exceptions are on Chrome.Strata
I see. I don't have simple answer though but check in chromium bugs.chromium.org if there's something there.Ivie
P
-1

You have to clear you caches and cookies in your browser so you can easily pulling out this error.

Plastered answered 23/9, 2023 at 13:57 Comment(1)
if it happen in production, i can't tell this to my clientSyncretism

© 2022 - 2024 — McMap. All rights reserved.