-
Bug descriptionI've got a NextJS application using prisma ORM to connect to a cloud sql postgres instance. I'm able to successfully connect to the database locally; however, when deploying to a staging or production environment, I'm unable to successfully connect. I'm not using any special characters in my db user or password values, and I'm also able to connect to a SQL client with the connection string just fine. ie there are no public access issues on the cloud sql instance. The connection string is of the form: I'll get a 500 when attempting to connect when I attempted to follow the advice of this blog post, and if I tweak the connection string to: I won't get a 500, but I'll still have an issue connecting to my db. I've also tried replacing "host" with "socket" to no avail. What am I doing wrong? How to reproduceSet May only be applicable to cloud sql connections. Not sure. Expected behaviorSuccessful db connection. Works locally, bombs when Prisma informationIrrelevant, but my header is Environment & setupSet macOs, linux, node docker image all the same Prisma Version |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hello @johnlk 👋 There's a related GitHub Issue that discusses connecting to Google Cloud SQL Instance Did you had a look at the solution comments in this GitHub Issue? |
Beta Was this translation helpful? Give feedback.
Hello @johnlk 👋
There's a related GitHub Issue that discusses connecting to Google Cloud SQL Instance
Did you had a look at the solution comments in this GitHub Issue?