Mike Carbone
Railway Vercel integration, failing to connect
Hey! So I'm using Railway to host my DB, project hosted on Vercel. I just set up a staging environment in Railway so that my preview deployments in Vercel don't mess with the data in my production database.
However, the builds fail to connect to Railway since installing the integration. Here is the error:
error: Error validating datasource
db: the URL must start with the protocol
postgresql:// or
postgres://
I suspect the integration is dynamically setting the DB url connection string, however it's not supplying it in the correct format? I'm not sure. There isn't a whole lot of options in the integration configuration. Can anyone point me to more details / documentation or help solve this issue? Thanks!
Btw, using Redwood JS as a framework, which uses Prisma under the hood. So technically that error is coming from Prisma. Other error details:
```
Error: Schema validation error - Error (query-engine-node-api library)
Error code: P1012
error: Error validating datasource
db: the URL must start with the protocol
postgresql:// or
postgres://`.
```14 replies
Application error hosting Express server
Hi! This is my first time setting up a Railway project.
I'm trying to host an express server on Railway, and after configuring the port setup, I get an application error when viewing from the Railway generated URL. I followed the instructions here: https://docs.railway.app/deploy/exposing-your-app
Here is my server code:
In Railway, everything deploys correctly and my logs look good:
By setting up that configuration, I was able to generate a Railway URL, however when navigating to that URL, I see an application error:
Any ideas? Thanks!
19 replies