3 days ago
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/app.py", line 5, in <module>
from database import db
File "/app/database.py", line 860, in <module>
db = DatabaseManager()
^^^^^^^^^^^^^^^^^
File "/app/database.py", line 11, in init
self.init_database()
File "/app/database.py", line 55, in init_database
raise Exception("No database connection available in production environment")
Exception: No database connection available in production environment
3 Replies
3 days ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
3 days ago
Are you using a Railway-deployed DB. If yes, then please ensure that the variables are there for the services that you want to connect with DB?
And make sure to use private-networking to do internal talking, as it would supress/bypasss the egress cost, as compared to public networking
https://docs.railway.com/guides/private-networking#communicating-over-the-private-network
clashing
Are you using a Railway-deployed DB. If yes, then please ensure that the variables are there for the services that you want to connect with DB?And make sure to use private-networking to do internal talking, as it would supress/bypasss the egress cost, as compared to public networkinghttps://docs.railway.com/guides/private-networking#communicating-over-the-private-network
a day ago
Any update, elctr0n