最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Internal error opening backing store for indexedDB.open - Stack Overflow

programmeradmin0浏览0评论

I am getting this error logs in public environment, quite consistently for around 0.1% of the sessions.

I am using Dexie. /

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 but none of the reasons mentioned here are sounding plausible in my scenario. most of the crashes are on windows machine

I am getting this error logs in public environment, quite consistently for around 0.1% of the sessions.

I am using Dexie. https://dexie/

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./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

Share Improve this question asked Oct 26, 2022 at 11:32 AnuragAnurag 1161 gold badge1 silver badge6 bronze badges 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. – Josh Commented Oct 27, 2022 at 16:06
Add a ment  | 

3 Answers 3

Reset to default 2

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

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?

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

发布评论

评论列表(0)

  1. 暂无评论