jakearchibald / idb-keyval

A super-simple-small promise-based keyval store implemented with IndexedDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.

wuweikd opened this issue · comments

commented

hi:

At my sentry,I got this error:
InvalidStateError: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.

There has been a lot of discussion on Net,But I can't reproduce it。

Can we use try,catch to catch It? In this way to try a few more times?

thanks

You should get a rejected promise if transaction throws. Unfortunately without any more details there's no way I can debug this.

hi:

At my sentry,I got this error: InvalidStateError: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.

There has been a lot of discussion on Net,But I can't reproduce it。

Can we use try,catch to catch It? In this way to try a few more times?

thanks

@wuweikd did you find a workaround? Hard to reproduce but happens to me as well. Wondering if just retrying solves it?

commented

hi:
At my sentry,I got this error: InvalidStateError: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
There has been a lot of discussion on Net,But I can't reproduce it。
Can we use try,catch to catch It? In this way to try a few more times?
thanks

@wuweikd did you find a workaround? Hard to reproduce but happens to me as well. Wondering if just retrying solves it?

I can't reproduce, but catch is useful,I use catch_function at every api