Error validating datasource `db`: the URL must start with the protocol `file:`
error when I run prisma db pull:
I've seen people on github with the same issue and the solution was to change their .env file from DATABASE_UTL="LIKE_THIS" to DATABASE_URL=LIKE_THIS but I didnt use quotes in my .env in the first place.
I also run prisma generate before running db pull
any ideas whats wrong?
7 Replies
also my schema file (initial, havent change it)
Don't you need them in .env
the quotes? yeah I dont use quotes
GitHub
`Error: P1012 Introspection failed as your current Prisma schema fi...
This schema works: generator client { provider = "prisma-client-js" previewFeatures = ["referentialActions"] } datasource db { provider = "sqlite" url = "foo"...
Prisma
Prisma error message reference (Reference)
Prisma Client, Migrate, Introspection error message reference
try to check how is the error caused and see if you have any of the issues there
🤔
nope, my whitespaces are fine
oh man I have no clue
could be everything tbh
Okay I found it!
I just copied schema.prisma from my other project, but thats weird because I didnt manualy touched any of these files. only generated them via db pull