-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to execute 'transaction' on ' IDBDatabase': The database connection is closing #80
Comments
Thanks for reporting this! And, sorry for the late reply. Are you deleting a database before the error occurs? Because this is the only place where IDBWrapper closes a connection. If not, it would look like some "accidental closing". |
I cannot reproduce it yet, but It happend sometimes with a client. @jensarps At the moment I'm waiting it the problem still exists in current Chrome versions. If so I'll come back to you. |
If it was indeed Chrome closing the connection by itself, the only way to guard against that would be to check the connection before every transaction – which is something I'd rather not do. So, let's wait and see if the issue still exists – and hope for the best :) |
This comment has been minimized.
This comment has been minimized.
@jensarps how can i fix this problem if i deleted the database from chrome application tools? |
Same thing is keep happening to me. when you will try to access the indexDb store before it gets ready this error will arise. |
Just stumbled over this thread: I have the same problem in Safari 12.0.1 (13606.2.104.1.2) and Chrome (Version 70.0.3538.102 (Offizieller Build) (64-Bit) - both Mac: I got the error when recreating/reopening the IDB. I am explicitly closing/droping the indexedDB when the user logs out and got this error message when the user logs in (where the DB will be recreated/opened). Even the error message shows up I can access the IDB after recreation. This is the code on logout (no error message on this): `function dbDrop() {
}` Firefox (Mac) is the only browser that doesn't show the message above on re-login. |
Hi, Glad I found that thread since we are running into that issue. We put a good amount of analysis and tracking on this - some of our numbers are in this spreadsheet - and these are our findings:
I will check out the recommendations for fixes above and report back. Any ideas of anyone needs more data feel free to hit me up. R. |
I am getting this error in the Safari mobile browser as well when I try to log into my website via Firebase OAuth. |
I've been unable to reproduce this myself, but lots of other people do seem to have this issue: |
Have also recently encountered this on Linux / Chromium.
edit : while using EverNote web clipper, which seems to be using IDBWrapper under the hood. |
Some browser might tend to loose connection every [I don't know] seconds/minutes/hours. The solution is to reload the connection, I do it every 10 minutes:
|
I also had this problem. |
It appears as if a firebase client upgrade (we went to 8.x) reliably solves the issue - no more error messages here. Check out their change log - there are a lot of references in the release notes regarding this issue. Went from 5.x to 8.x without major hassle. https://firebase.google.com/support/release-notes/js#8.1.2 |
Any changes here? Have the same problem on iPad OS without Cellular. Cannot reproduce, just getting via BugMonitoring. I'm not using IndexedDB directly but using LokiJS with IndexedDB Adapter for fallback / persistance. |
This error occurred to me when I had no space left on my device. Even after clearing some space it still happend, had to restart my application |
In Chrome sometimes the following error appears:
Failed to execute 'transaction' on ' IDBDatabase': The database connection is closing
Sadly to this point I can not say in which line of code because it is hard to reproduce this.
The text was updated successfully, but these errors were encountered: