You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DOMException: Failed to execute 'put' on 'IDBObjectStore': The object store uses in-line keys and the key parameter was provided.
So my question is - is the workbox database not compatible with localForage? What exactly makes it incompatible and what solutions (maybe other indexeddb wrappers) would allow me to read the data from it?
My aim at this point is just reading the data so it would be ideal if localforage could do at least just that..
The text was updated successfully, but these errors were encountered:
Is it possible to integrate into an existing
workbox
database?When using service workers -
workbox
(PWA solution for front-end) creates a database where failed HTTP requests are stored. It looks like this:also, see that key path 'id' is used.
So, I am trying to connect to this database and retrieve all keys and values:
and
The
localforage
is able to get the keys just fine and loop over them. But the value is retrieved asnull
. No errors are thrown.Furthermore, out of curiosity I tried inserting my own data into the store (not because I actually plan on using this):
and the exception is thrown:
So my question is - is the
workbox
database not compatible withlocalForage
? What exactly makes it incompatible and what solutions (maybe otherindexeddb
wrappers) would allow me to read the data from it?My aim at this point is just reading the data so it would be ideal if
localforage
could do at least just that..The text was updated successfully, but these errors were encountered: