question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Failed to execute 'put' on 'IDBObjectStore': The object store uses in-line keys and the key parameter was provided. when I try to use updateByKey

See original GitHub issue

Hi, I am getting error when I try to use updateByKey

let data = { tab_3: formData[‘tab_3’] } const store$ = this.dbService.updateByKey(‘transformer_safety_history’, data, 4);

I have also try different combination like

let data = { tab_3: formData[‘tab_3’], id: 4 } const store$ = this.dbService.updateByKey(‘transformer_safety_history’, data);

and when I try to use

const store$ = this.dbService.update('transformer_safety_history', data);

its removed all old data and add new data that are post

here is error log

2021-09-03T07:07:37.659Z ERROR [main.js:20081] Error: Failed to execute ‘put’ on ‘IDBObjectStore’: The object store uses in-line keys and the key parameter was provided. at http://localhost:4200/vendor.js:226422:29 at ZoneDelegate.invoke (http://localhost:4200/polyfills.js:683:26) at Object.onInvoke (http://localhost:4200/vendor.js:57382:33) at ZoneDelegate.invoke (http://localhost:4200/polyfills.js:682:52) at Zone.run (http://localhost:4200/polyfills.js:445:43) at http://localhost:4200/polyfills.js:1587:36 at ZoneDelegate.invokeTask (http://localhost:4200/polyfills.js:717:31) at Object.onInvokeTask (http://localhost:4200/vendor.js:57369:33) at ZoneDelegate.invokeTask (http://localhost:4200/polyfills.js:716:60) at Zone.runTask (http://localhost:4200/polyfills.js:489:47)

Here is version details:

@angular/common”: “11.2.1”, “@angular/compiler”: “11.2.1”, “@angular/core”: “^11.2.1”, “ngx-indexed-db”: “^9.3.0”,

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
aparzicommented, Apr 8, 2022

Hi everyone @DadvDadv @vahid18u @Y3kRulez @muzafarali, this issue is solved with the merge #309.

1reaction
assuncaocharlescommented, May 29, 2022

Fixed on #309

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is this IndexedDB put command failing? Error: DataError
The object store uses in-line keys and the key parameter was provided. You are specifying a keypath which instruct the store to use...
Read more >
The object store uses out-of-line keys and has no key ... - Reddit
Failed to execute 'add' on 'IDBObjectStore': The object store uses out-of-line keys and has no key generator and the key parameter was not ......
Read more >
IDBObjectStore.add() - Web APIs - MDN Web Docs
The object store uses out-of-line keys and has no key generator, and no key parameter was provided. The object store uses in-line keys...
Read more >
Failed to execute 'put' on 'IDBObjectStore': The parameter is ...
Failed to execute 'put' on 'IDBObjectStore': The parameter is not a ... export const put = (store, item, key) => rtop(store.put(item, key)).
Read more >
add · WebPlatform Docs
Usage · The object store uses in-line keys and the key parameter was provided. · The object store uses out-of-line keys and has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found