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.

“Transaction API error: Transaction not found”

See original GitHub issue

Bug description

Context: I’m trying to implement Replicache using Prisma interactive transactions for an offline-first, instant UI. 🚀

Bug: While using transactions, I get a Transaction API error: Transaction not found error.

How to reproduce

  1. Clone https://github.com/ConsciousApps/replicache-demo
  2. Obtain PlanetScale database test password via instructions in README.md file and replace placeholder in .env file
  3. Install: yarn (or npm install)
  4. Reset database (in case I, or someone else, has already populated it with data): yarn db:reset
  5. Run yarn dev
  6. Sign up or sign in
  7. Once signed in, create 5 new to-dos in quick succession (creating new to-dos slowly does not produce this bug)

Expected behavior

All transactions should be found.

Prisma information

Schema: https://github.com/ConsciousApps/replicache-demo/blob/main/prisma/schema.prisma

Prisma Transactions: https://github.com/ConsciousApps/replicache-demo/blob/main/pages/api/replicache/push.js#L24-L59 https://github.com/ConsciousApps/replicache-demo/blob/main/pages/api/replicache/pull.js#L20-L61

(bug shows up in either files)

Environment & setup

  • OS: macOS
  • Database: PlanetScale MySQL
  • Node.js version: 16.16.0

Prisma Version

4.6.0-dev.32 (latest)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
heymartinadamscommented, Dec 6, 2022

Thank you @aqrln ✨ A more detailed error message might have been helpful at the time. Glad it’s made its way into 4.7.0.

I’ll write up a blog post about Replicache shortly. https://github.com/simplerlist/replicache-demo

1reaction
heymartinadamscommented, Nov 3, 2022

@janpio the repo is a complete demo/reproduction so hopefully should be easy to set up and figure out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prisma 4.7.0 Release - GitClear
... Args are out of sync with the action type for count when creating prisma middeware · “Transaction API error: Transaction not found” ......
Read more >
@prisma/engines: Versions | Openbase
... Args are out of sync with the action type for count when creating prisma middeware · “Transaction API error: Transaction not found”...
Read more >
Highlights - FeedsAnywhere
... Args are out of sync with the action type for count when creating prisma middeware · "Transaction API error: Transaction not found"...
Read more >
Prisma Versions - Open Source Agenda
... Args are out of sync with the action type for count when creating prisma middeware · “Transaction API error: Transaction not found”...
Read more >
prisma - bytemeta
“Transaction API error: Transaction not found”. firatoezcan. firatoezcan OPEN · Updated 2 days ago · Add the ability to add a where clause...
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