Discussions

Ask a Question
Back to All

Prisma Connection Not Working

Prisma connections to my database have recently stopped working, throwing PrismaClientInitializationError due to timeout or failed connection.

When connecting to [postgres connection string]/username.validdatabase I get a 'Can't reach database server. If I change this to [postgres connection string]/username.randomstring` I get an authentication error as expected.

Accessing manually through psql CLI works fine, so I think it could be an issue with how your system is handling the '/' -> '.' replacement in connection strings? (as instructed in https://docs.bit.io/docs/connecting-via-prisma)