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

a year ago

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

Solved

23 Replies

brody
EMPLOYEE

a year ago

please provide the actual error message


antonidb
HOBBYOP

a year 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.


brody
EMPLOYEE

a year ago

are these errors you are getting locally or on railway


antonidb
HOBBYOP

a year ago

en mi app 🙂


adam
MODERATOR

a year ago

locally or on Railway?


antonidb
HOBBYOP

a year ago

Which one should I use?

1313203058477502500


antonidb
HOBBYOP

a year ago

locally


brody
EMPLOYEE

a year ago

locally you need to use the public url


antonidb
HOBBYOP

a year ago

but if my app is in production


brody
EMPLOYEE

a year ago

then you don't use the public url


antonidb
HOBBYOP

a year ago

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


antonidb
HOBBYOP

a year ago

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


brody
EMPLOYEE

a year ago

English only please


antonidb
HOBBYOP

a year ago

sorry 😉


brody
EMPLOYEE

a year ago

on vercel you need to use the public url


antonidb
HOBBYOP

a year ago

and this message?


antonidb
HOBBYOP

a year ago

1313203796272353300


brody
EMPLOYEE

a year ago

yes it will cost you egress


antonidb
HOBBYOP

a year 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?


brody
EMPLOYEE

a year ago

correct


antonidb
HOBBYOP

a year ago

excellent. now I understand. thank you so much


brody
EMPLOYEE

a year ago

no problem


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...