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

2 years 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

2 years ago

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


stefanuddenberg
PROOP

2 years ago

No


stefanuddenberg
PROOP

2 years ago

I'm just using the DATABASE_URL provided in the environment


2 years ago

use the private network please


stefanuddenberg
PROOP

2 years ago

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


stefanuddenberg
PROOP

2 years ago

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


2 years ago

correct


stefanuddenberg
PROOP

2 years ago

alright, will do.


Loading...