Skip to content
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

IndexedDB adapter fails in FF4+ #68

Open
prashantak opened this issue Oct 3, 2011 · 10 comments
Open

IndexedDB adapter fails in FF4+ #68

prashantak opened this issue Oct 3, 2011 · 10 comments
Labels
Milestone

Comments

@prashantak
Copy link

While running the examples on http://westcoastlogic.com/lawnchair/saving/
I got the following error

[Break On This Error] var request = obj.key ? store.put(obj, obj.key) : store.put(obj);
error in indexed-db adapter! error undefined
indexed-db.js (line 87)

Going through the indexed-db.js code i found

and similar "teststore" statements throughout the code.
Shouldn't the store name be passed as a parameter?

Surprisingly the adapter works in Chrome (14.x).

@steverandy
Copy link

I'm using Firefox 9 and getting the similar error.

Data provided to an operation does not meet requirements.
[Break On This Error]

var request = obj.key ? store.put(obj, obj.key) : store.put(obj);

Again it works ok on Chrome.

@paulirish
Copy link
Contributor

The indexeddb adapter may have FF issues. I consider this a dupe of #51

someone should add idbwrapper as part of the adapter.

@tanx
Copy link

tanx commented Jun 1, 2013

Hi there,

I'm using the current lawnchair build from the master branch in Firefox 21 and I'm getting the following error Messages:

TypeError: getIDBDatabaseException(...) is undefined @ lawnchair-adapter-indexed-db-git.js:123
UnknownError @ lawnchair-adapter-indexed-db-git.js:56

Is anyone else having trouble with this? thanks

@evilripper
Copy link

I have the same issue on firefox 21:
InvalidStateError
var request = this.idb.open(this.name, STORE_VERSION);
TypeError: getIDBDatabaseException(...) is undefined
if (request.errorCode === getIDBDatabaseException().VERSION_ERR) {

@peppelorum
Copy link

IDBDatabaseException seems to be obsolete according to this https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabaseException and should be replaced by DomException but just changing to that doesn't solve it, cause then some Unknown Error occurs and kills my FF (v22).

@peppelorum
Copy link

Well, it actually fixed the error, but running on localhost seems not to work for me, but computer.local (or similar) works, I made the change and made PR for this, #176

@mikeknoop
Copy link

100% of the time in FF25 I get "InvalidStateError" if Firefox privacy settings for "Remember History" are set to "Never Remember History".

I actually get a new error when I toggled it back to "remember history":

NotFoundError: The operation failed because the requested database object could not be found. For example, an object store did not exist but was being opened.

Can't seem to get IndexDB back into a working state but at least I can reliably reproduce it now so I can catch the exception and disable storage.

@tanx
Copy link

tanx commented Oct 28, 2014

Any update on this? I'd be to do the work to fix this if there are any suggestions. Thanks

@felixhammerl
Copy link

i tip my hat to firefox, because this is a useless message:

The operation failed for reasons unrelated to the database itself and not covered by any other error code.

there was a bug here but i don't see how that should apply to a use case where the site is served from a local node instance on http://localhost.

@felixhammerl
Copy link

the bug you're seeing occurs when you're trying to fire up an indexed db when you set firefox to private mode or set it to not remember the history. please check if this helps: #207

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants