5 months ago
Backend: NestJS + prisma
ENV is DATABASE_URL="${{ name-of-db-service.DATABASE_URL }}"
Attachments
Pinned Solution
5 months ago
I would first try switching to pg for your database driver instead of Prisma's default Rust driver.
https://www.prisma.io/docs/orm/overview/databases/postgresql#using-the-node-postgres-driver
19 Replies
5 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
5 months ago
Hey there! Do you happen to have multiple connections going at once? If so are you doing connection pooling?
noahd
Hey there! Do you happen to have multiple connections going at once? If so are you doing connection pooling?
5 months ago
I'm 100% sure, I know it is possible, but I also noticed it happening when I was the only user accessing the app
oeduardofreitas
I'm 100% sure, I know it is possible, but I also noticed it happening when I was the only user accessing the app
5 months ago
I'm not using connection pooling
5 months ago
Did a bit of digging, it looks like some users had this same issue then implemented connection pooling with pgbouncer and it solved it!
noahd
Did a bit of digging, it looks like some users had this same issue then implemented connection pooling with pgbouncer and it solved it!
5 months ago
I'll try adding the pgbouncer
5 months ago
This might be a good thing to take a peek at as well! https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/databases-connections
Let me know how PGBouncer goes!
5 months ago
I would first try switching to pg for your database driver instead of Prisma's default Rust driver.
https://www.prisma.io/docs/orm/overview/databases/postgresql#using-the-node-postgres-driver
brody
I would first try switching to pg for your database driver instead of Prisma's default Rust driver.https://www.prisma.io/docs/orm/overview/databases/postgresql#using-the-node-postgres-driver
5 months ago
sure, I'll do it first
brody
I would first try switching to pg for your database driver instead of Prisma's default Rust driver.https://www.prisma.io/docs/orm/overview/databases/postgresql#using-the-node-postgres-driver
5 months ago
I have made the change, lets see if the error goes away
noahd
Howdy! Did that fix the error?
5 months ago
I haven't seen the error anymore. I'll keep monitoring it
noahd
Can i get any more info about the project? Would be awesome!
5 months ago
sure, what info would you like?
oeduardofreitas
sure, what info would you like?
5 months ago
Oop I think I sent this in the wrong thread accidentally I apologize! Was multitasking with tabs too fast
noahd
Oop I think I sent this in the wrong thread accidentally I apologize! Was multitasking with tabs too fast
5 months ago
No worries
5 months ago
Resolved by switching to pg the database driver instead of Prisma's default Rust driver 
Status changed to Awaiting User Response Railway • 5 months ago
Status changed to Solved brody • 5 months ago
