Error: Schema engine error:
I'm trying to integrate supabase with prisma but getting the following error:
33 Replies
Please help me to fix this error.
I'm not sure what the error is...
Here's my schema.prisma:
Is there more errror info. That error is only seen once here with Prisma and was relayed with a more detailed connection error.
Guides:
https://supabase.com/docs/guides/database/prisma
https://supabase.com/docs/guides/database/prisma/prisma-troubleshooting
Make sure you connection URL is correct including using postgres.instanceid for the username and no special characters in the password.
Here's my env file
And there isn't any more error
I followed the docs and everything is from docs
If you password does not contain special characters and your instance is in US east those look correct.
I've just created the project on supabase
I don't have any special characters or number on my password
Is there any other configuration on supabase?
Wait. Are your URL's backwards?
the env variables are also from supabase
Yeah, the connect tab shows like you have.
Is that something wrong?
For serverless prisma clients

It looks same as mine
I don't know of any other settings and most Prisma users here get a connection error and not this "schema engine error". I've never seen that but there is one hit in the search here from awhile back.
You'll have to see if a Prisma user comes along.
Your settings seem correct for serverless.
I created a "prisma" user as well by following this:

Same error with "prisma"
You used postgres user in your code you showed. So would need the DB password.
I have db password too
So you tried both users?
Yes tried both and same error
The Postgres one with the DB password should work.
I think it looks like connection error. Is there any way to check that url manually?
PSQL is a db tool you can install with locally with a local Postgres and can test it.
Do you see something that says connection error?
Can I test DATABASE_URL (port 6543) on pgAdmin?
Not sure. I know you can test the 5432 port. If that works the other would too.
I've never used the pooler transaction port with a DB tool.
There are no known issues with Prisma and Supabase.

user name is wrong
needs the project id.
postgres.projectid

Is this correct?
No idea what you are doing now.
The connection tab should have the values.

I see. You changed the host name not the username.
So from you last screen prisma.xxxxxxxxxxxxx is the username.
Yes, it's working. I think it's prisma error
Not sure what's wrong with prisma...
No idea. See if they have a forum or see if a Prisma user comes along here.
Anyway, thanks for your support!