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
7 Replies
Project ID:
4de0ef1d-fa4e-44c7-9238-dad1e6983186
are you using the private network to connect to the database?
No
I'm just using the DATABASE_URL provided in the environment
Solution
use the private network please
How would I do that in the context of a public-facing web application?
Do I just change "DATABASE_URL" to "DATABASE_PRIVATE_URL"?
correct
alright, will do.