Database fails to work correctly on first login for app
stefanuddenberg
PROOP

a year ago

The first one or two times I try to login with my application a day using the railway postgres database, I get the following sort of error, which is an operational error regarding the database. Eventually retrying resolves the issue, but it would be nice if the app worked even when I was trying to demo in front of other people. This is true of other apps I use as well on railway. See attachment for details.

Project ID: 4de0ef1d-fa4e-44c7-9238-dad1e6983186

8 Replies

brody
EMPLOYEE

a year ago

are you using the private network to connect to the database?


stefanuddenberg
PROOP

a year ago

No


stefanuddenberg
PROOP

a year ago

I'm just using the DATABASE_URL provided in the environment


brody
EMPLOYEE

a year ago

use the private network please


stefanuddenberg
PROOP

a year ago

How would I do that in the context of a public-facing web application?


stefanuddenberg
PROOP

a year ago

Do I just change "DATABASEURL" to "DATABASEPRIVATE_URL"?


brody
EMPLOYEE

a year ago

correct


stefanuddenberg
PROOP

a year ago

alright, will do.


Loading...