tursodatabase / turso-docs

Turso Documentation
https://docs.turso.tech
MIT License
11 stars 49 forks source link

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

Closed rujorgensen closed 4 months ago

rujorgensen commented 4 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 (I but I guess without changes stored locally? I'm not 100% sure about what role the local dev.db-file plays).

rujorgensen commented 4 months ago

I moved the issue to https://github.com/tursodatabase/libsql