-
-
Notifications
You must be signed in to change notification settings - Fork 650
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
InvalidStateError on Firefox #312
Comments
Seems to be produced when using private navigation. I guess this is related to the way Firefox handles storing data in private mode. Safari throws a I think that the fact that IndexedDB does not work in private mode for those browsers should be put forward in the documentation. It would save time to a lot of developers. Not Dexie's fault but nice to mention anyway! ;) |
Ok, thanks for sharing this. I don't get why cookies are allowed but not indexedDB. Probably due to the lack of a RAM memory based indexeddb implementation. I could write some doc about this issue and how to give users a better experience than just obscure error messages. It might be useful to update dexie to give a common error for errors due to private browsing. I'll see what I could do about it. |
When trying to set in private browser there will be an error thrown
That quota ExceededError is same error thrown when trying to use localStorage on Safari private browsing |
@dev0x10 I've had this one too and it seems to mean that the user's disk is full and therefore browser denies opening a database |
@julienfouilhe oh yes user's disk full also can cause that problem. But mostly it is happen because of private browsing mode, especially in Safari |
There really should be a more informative warning for when IndexedDB isn't available.... |
People at Firefox are working (slowly) to fix the issue and to enable IndexedDB in private mode: https://bugzilla.mozilla.org/show_bug.cgi?id=781982 |
According to MDN docs the only browser that supports IndexedDB in private mode is Chrome. |
Hi,
For some time now, I've seen a recurring error:
InvalidStateError
This happens with this simple code:
It only happens on Firefox (v39 to v48), rarely though. I was never able to reproduce it, I've only seen this happen to my users, via bug reporting.
I've seen this link that seems to be related but I can't figure out what I'm doing wrong: http://stackoverflow.com/questions/24295588/indexeddb-error-in-firefox-when-calling-createobjectstore
The text was updated successfully, but these errors were encountered: