I suspect the problem is between .env and
app.Config.DB.*
. Could you show us the output of printing dsn
inside ConnectToPostgres
?