© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
2 replies
Freaky Easst

How to fix Error: P1017: Server has closed the connection. supabase

I have just installed prisma , then i coded this:
generator client {
provider = "prisma-client-js"
output = "../src/generated/prisma"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}


model User {
id Int @id @default(autoincrement())
telegramId String @unique
promoCode String @unique
}

after
npx prisma migrate dev
npx prisma migrate dev
I got that error Error: P1017: Server has closed the connection
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

PrismaClientKnownRequestError: Server has closed the connection
SupabaseSSupabase / help-and-questions
3y ago
server closed the connection unexpectedly
SupabaseSSupabase / help-and-questions
13mo ago
Supabase Error connection
SupabaseSSupabase / help-and-questions
8mo ago
Hyperdrive Connection Failing with Error Code 2015 - "Server returned error and closed connection"
SupabaseSSupabase / help-and-questions
4mo ago