Callum
Callum
Explore posts from servers
CDCloudflare Developers
Created by Callum on 4/4/2024 in #pages-help
Service Binding not appearing in worker dashboard
OK thats good to know, its likely something else I've got wrong then 🙂
4 replies
RRailway
Created by Callum on 8/2/2023 in #✋|help
Prisma not connecting to DB once deployed
Is there an alternative way I should communicate with the database other than the URL if the database is in the same project? It would make sense to utilise private network if its available, but I thought it was just for services
20 replies
RRailway
Created by Callum on 8/2/2023 in #✋|help
Prisma not connecting to DB once deployed
Strange that the other service was working
20 replies
RRailway
Created by Callum on 8/2/2023 in #✋|help
Prisma not connecting to DB once deployed
That seems to have done it! It is no longer crashing 👍
20 replies
RRailway
Created by Callum on 8/2/2023 in #✋|help
Prisma not connecting to DB once deployed
Yes, looks the same:
20 replies
RRailway
Created by Callum on 8/2/2023 in #✋|help
Prisma not connecting to DB once deployed
I set the pool_timeout to 0 and its the same problem. So strange!
20 replies
RRailway
Created by Callum on 8/2/2023 in #✋|help
Prisma not connecting to DB once deployed
Sure, just checking the docs, it looks like I do this by adding some parameters to the connection URL, is that right? https://www.prisma.io/docs/concepts/components/prisma-client/working-with-prismaclient/connection-pool
20 replies
RRailway
Created by Callum on 8/2/2023 in #✋|help
Prisma not connecting to DB once deployed
As an update I've tried adding a dockerfile for the build but I am running into the same issue. The postgres database is also logging some information, which I am assuming is related but that might be wrong: 2023-08-03 08:33:24.100 UTC [45359] LOG: could not receive data from client: Connection reset by peer 2023-08-03 08:34:34.937 UTC [45365] LOG: could not receive data from client: Connection reset by peer Again, its really strange as I have no trouble connecting to the db from the other project or from my local machine
20 replies
RRailway
Created by Callum on 8/2/2023 in #✋|help
Prisma not connecting to DB once deployed
I believe so, I think it is on by default for each service. I have generated a domain for both service as well
20 replies
RRailway
Created by Callum on 8/2/2023 in #✋|help
Prisma not connecting to DB once deployed
I have tested deploying the same app to Render, and it works fine there, so as far as I can see this is a railway issue
20 replies
RRailway
Created by Callum on 8/2/2023 in #✋|help
Prisma not connecting to DB once deployed
b16fcfcf-a291-4b1b-b5bb-5bc5ef66af6b
20 replies