“Transaction API error: Transaction not found”
See original GitHub issueBug 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
- Clone https://github.com/ConsciousApps/replicache-demo
- Obtain PlanetScale database test password via instructions in README.md file and replace placeholder in
.env
file - Install:
yarn
(ornpm install
) - Reset database (in case I, or someone else, has already populated it with data):
yarn db:reset
- Run
yarn dev
- Sign up or sign in
- 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:
- Created a year ago
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
@janpio the repo is a complete demo/reproduction so hopefully should be easy to set up and figure out.