R
Railway4mo ago
Stefan

Database fails to work correctly on first login for app

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
Solution:
use the private network please
Jump to solution
7 Replies
Percy
Percy4mo ago
Project ID: 4de0ef1d-fa4e-44c7-9238-dad1e6983186
Brody
Brody4mo ago
are you using the private network to connect to the database?
Stefan
Stefan4mo ago
No I'm just using the DATABASE_URL provided in the environment
Solution
Brody
Brody4mo ago
use the private network please
Stefan
Stefan4mo ago
How would I do that in the context of a public-facing web application? Do I just change "DATABASE_URL" to "DATABASE_PRIVATE_URL"?
Brody
Brody4mo ago
correct
Stefan
Stefan4mo ago
alright, will do.
Want results from more Discord servers?
Add your server