i am geeting mad by this error
elctr0n
FREEOP

10 months ago

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/app/app.py", line 5, in

from database import db

File "/app/database.py", line 860, in

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

$10 Bounty

3 Replies

Railway
BOT

10 months 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!


clashing
FREE

10 months 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 networking <https://docs.railway.com/guides/private-networking#communicating-over-the-private-network>

clashing
FREE

10 months ago

Any update, elctr0n


Welcome!

Sign in to your Railway account to join the conversation.

Loading...