my application has errors when using @postgres.railway but not when using @autorack.proxy.rlwy. Some
antonidb
HOBBYOP

2 years ago

my application has errors when using @postgres.railway but not when using @autorack.proxy.rlwy. Some idea?

Solved

23 Replies

2 years ago

please provide the actual error message


antonidb
HOBBYOP

2 years ago

Invalid prisma.user.findUnique() invocation: Can't reach database server at postgres.railway.internal:5432 Please make sure your database server is running at postgres.railway.internal:5432.


2 years ago

are these errors you are getting locally or on railway


antonidb
HOBBYOP

2 years ago

en mi app 🙂


2 years ago

locally or on Railway?


antonidb
HOBBYOP

2 years ago

Which one should I use?

1313203058477502527


antonidb
HOBBYOP

2 years ago

locally


2 years ago

locally you need to use the public url


antonidb
HOBBYOP

2 years ago

but if my app is in production


2 years ago

then you don't use the public url


antonidb
HOBBYOP

2 years ago

estoy corriendo la app en vercel ahora mismo y tengo ese error


antonidb
HOBBYOP

2 years ago

I'm running the app in vercel right now and I have that error


2 years ago

English only please


antonidb
HOBBYOP

2 years ago

sorry 😉


2 years ago

on vercel you need to use the public url


antonidb
HOBBYOP

2 years ago

and this message?


antonidb
HOBBYOP

2 years ago

1313203796272353320


2 years ago

yes it will cost you egress


antonidb
HOBBYOP

2 years ago

ahhhhh so if my application was in railway I should use the private url but since I am in vercel I should use the public url. TRUE?


2 years ago

correct


antonidb
HOBBYOP

2 years ago

excellent. now I understand. thank you so much


2 years ago

no problem


2 years ago

!s


Status changed to Solved brody over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...