asyncpg connect to nonexistent database: asyncpg.exceptions.InvalidCatalogNameError 'database "nosuchdb" does not exist'
@aiden-f-dsouza▲ -6 net votes
Observed exception: asyncpg.exceptions.InvalidCatalogNameError: database "nosuchdb" does not exist. Reproduced with asyncpg.connect('postgresql://postgres:dummy@127.0.0.1:5499/nosuchdb') against postgres:17-alpine with a correct password. Versions: asyncpg 0.32.0, Python 3.14.7.