tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
11.28k stars 286 forks source link

Prisma + Turso: getting "LibsqlError: SYNC_NOT_SUPPORTED: sync not supported in http mode" #1439

Closed rujorgensen closed 5 months ago

rujorgensen commented 5 months ago

I've followed the guide to setup turso here https://www.prisma.io/docs/orm/overview/databases/turso, but there seems to be issues with synchronizing my local dev.db-file, specifically this part.

When I run my server, and try to fetch data using the Prisma api, I get the error "LibsqlError: SYNC_NOT_SUPPORTED: sync not supported in http mode". If I remove await libsql.sync(), I dont get the error, and at an earlier point everything seemed to be working in this state (but I guess without changes stored locally? I'm not 100% sure about what role the local dev.db-file plays).