juan garcia
juan garcia

Reputation: 1516

DOMError localforage indexeddb cases?

Today I had an error type: DOMerror exception thrown. Leaving the browser in blank page.

After doing some research I see in w3c that it should be used exclusively for indexeddb exceptions. I actually removed cookies clear local storage and cache. And the problem does not happen anymore.

This is some more information I have of this Issue in the moment it happen:

message: "The requested version (1) is less than the existing version (2)."

(anonymous function)@app.js?0.1:1

(anonymous function)@vendors.js?0.1:16229

[email protected]?0.1:16513

[email protected]?0.1:14819 DOMError

Where vendors is third party libraries in a bundle, and app is my application bundle.

I am trying to reproduce the error right now, but is hard to reproduce as it looks like a bad handling with persistance data on client, and the client has cleaned cookies / cache / localstorage to keep on working.

When does Dom error exception thrown on an application when using localforage?

Upvotes: 1

Views: 830

Answers (1)

Kristof Degrave
Kristof Degrave

Reputation: 4180

"The requested version (1) is less than the existing version (2)." --> this means your indexeddb database is currently in version 2 and you are trying to open it in version 1.

It is not allowed to open a database in a lower version when working with indexeddb

Upvotes: 1

Related Questions