N
Neon17mo ago
narrow-beige

I am unable to connect to my database on localhost

I get no response it just keeps waiting and I finally get TimeoutError
2 Replies
narrow-beige
narrow-beigeOP17mo ago
in my dashboard it says it is active
try:
self.db = await asyncpg.create_pool(TEST_DB_CONFIG)
self.log.info("Connected to TEST Database")
except Exception as e:
self.log.warn("Failed to connect to TEST Database: ", e)
return
try:
self.db = await asyncpg.create_pool(TEST_DB_CONFIG)
self.log.info("Connected to TEST Database")
except Exception as e:
self.log.warn("Failed to connect to TEST Database: ", e)
return
this is how I connect. it got fixed but this issue happens frequently maybe like once in 1-2 months .
conscious-sapphire
conscious-sapphire17mo ago
Hey! Sorry to hear that you're running into issues. We need more details to be able to understand what's happening - Are you able to connect to your database using psql for example? - What exactly is the error your're getting?

Did you find this page helpful?