Error connecting to Heroku Postgres

Hello! I’m trying to deploy an Elixir / Phoenix app that connects to a Heroku Postgres database. I’ve set the DATABASE_URL, but I’m getting an error:

[error] Postgrex.Protocol (#PID<0.166.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (<host>:5432): non-existing domain - :nxdomain

I’m assuming the error is related to ssl. I’ve set ssl: true as well as ssl_opts in my prod.exs, but those settings don’t seem to be doing anything as I get the same behavior with and without them.

I have seen this article, but the sample code in it is Node, so it’s not really helpful.

Has anyone gotten this working? Any help would be much appreciated.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.