Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRANSACTION_CLOSED issue with Prisma #124

Open
penberg opened this issue Nov 1, 2023 · 2 comments
Open

TRANSACTION_CLOSED issue with Prisma #124

penberg opened this issue Nov 1, 2023 · 2 comments

Comments

@penberg
Copy link
Contributor

penberg commented Nov 1, 2023

Someone reported that with the following Prisma example, they're always getting TRANSACTION_CLOSED error on the first write:

https://www.prisma.io/blog/prisma-turso-ea-support-rXGd_Tmy3UXX

@rlfrahm
Copy link

rlfrahm commented Nov 1, 2023

This is the repo that I'm seeing the error on:

https://github.com/ruheni/fullstack-prisma-turso-embedded-db

My steps to reproduce are:

  1. npm i
  2. npx prisma migrate dev - For good measure, pretty sure you don't need to do this.
  3. turso db shell [db name] < prisma/migrations/20230922132717_innit/migration.sql
  4. turso db shell [db name] < prisma/migrations/20230924132455_password/migration.sql
  5. Add environment variables to .env:
    1. TURSO_AUTH_TOKEN=
    2. TURSO_DATABASE_URL=
    3. SESSION_SECRET=llkasjdflkjasdflnasdlkjnalsdf
    4. DATABASE_URL=file:./prisma/dev.db
  6. npm run dev
  7. Open localhost:3000 and try to signup

@janpio
Copy link

janpio commented Nov 5, 2023

Related Discord thread: https://discord.com/channels/933071162680958986/1168952021064351886

And PR that will hopefully resolve this: tursodatabase/libsql#559

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants