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.

No clear route to add/update a new row.

See original GitHub issue

When trying to update a row in the DB using:

this.localDB.update("storeName", newRow).subscribe(
   //next
   (result) => console.log(result),
   //error
   (error) => {
      this.localDB.add("storeName", newRow).subscribe(
         //next
         (result) => console.log(result),
         () => console.log("unable to update")
      )
   }
);

If the DB is empty or the key exists, there’s no issue. But if there are any other rows, then the runtime error isn’t captured and console shows only:

Uncaught TypeError: Cannot read properties of undefined (reading 'isStopped')

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aparzicommented, Oct 22, 2021

Hi @JosepAlacid, the problem is still present? If so the request will be taken care of.

P.s. sorry if it’s been some time to get back to you

0reactions
assuncaocharlescommented, May 29, 2022

Hi @JosepAlacid I believe this got fixed together in #319

Therefore I am closing this, feel free to reopen it if you find a different problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot add or update a child row: a foreign key constraint fails
You're getting this error because you're trying to add/update a row to table2 that does not have a valid value for the UserID...
Read more >
Maintaining the routing file - IBM
The NPF ISPF interface allows you to maintain your routing file by providing you with panels to browse, add, copy, update, or delete...
Read more >
Updating Data - Tabulator
You can add a data to the existing table data using the addData function. The first argument should be an array of row...
Read more >
4. Inserting, Updating, Deleting - SQL Cookbook [Book] - O'Reilly
The INSERT statement allows you to create new rows in database tables. ... Prior to Oracle9i Database, there was no way to explicitly...
Read more >
Insert, update, and delete data using data manipulation ...
Use the following steps to execute a DML statement in the Google Cloud console. Go to the Spanner Instances page. ... Enter a...
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