Replies: 4 comments 14 replies
This comment has been hidden.
This comment has been hidden.
-
@ruheni @janpio first of all great work with the Turso libsql Adapter 👏🏽 ! Is it a known issue that when using embedded replicas you can not write to the DB? I was experimenting with this and embedded replicas as explained here -> https://www.prisma.io/blog/prisma-turso-ea-support-rXGd_Tmy3UXX and found out all inserts fail with this error -> I'm wondering if this is really a Prisma issue or maybe a [2] PrismaClientKnownRequestError:
[2] Invalid `prisma.todo.create()` invocation:
[2]
[2]
[2] TRANSACTION_CLOSED: The transaction is closed
[2] code: "TRANSACTION_CLOSED"
[2]
[2] at new U (/home/edgar/workspace/scaffold-apps/beth-stack/node_modules/@prisma/client/runtime/library.js:26:1479)
[2] at handleRequestError (/home/edgar/workspace/scaffold-apps/beth-stack/node_modules/@prisma/client/runtime/library.js:123:6816)
[2] at handleAndLogRequestError (/home/edgar/workspace/scaffold-apps/beth-stack/node_modules/@prisma/client/runtime/library.js:123:6200)
[2] at /home/edgar/workspace/scaffold-apps/beth-stack/node_modules/@prisma/client/runtime/library.js:123:5920
[2] at processTicksAndRejections (:61:76)
[2] POST - http://localhost:3000/api/todos failed
[2] 2023-11-05T14:27:30.140811Z ERROR tower_http::trace::on_failure: response failed classification=Code: 9 latency=42 ms It seems the transaction is closed prematurely or something similar, going back to no It might be worth mentioning somewhere that so far, due to this still being experimental, inserts to the db don't work while also using embedded replicas. It's hard to go back though after experiencing the crazy fast query responses. |
Beta Was this translation helpful? Give feedback.
-
Really waiting for applying migrations with schema entity changes, is there anything in progress for that? |
Beta Was this translation helpful? Give feedback.
-
Probably it is a known issue but just want to point this:
|
Beta Was this translation helpful? Give feedback.
-
Support for Turso is in early access behind the
driverAdapters
preview feature. You can learn about it in our blog post.Please share your feedback about
@prisma/adapter-libsql
released in v5.4.0 in this issue.Beta Was this translation helpful? Give feedback.
All reactions