Phoenix app - (DBConnection.ConnectionError) tcp connect (dbhostname:5432): non-existing domain - :nxdomain

Fixed. I had to set socket_options to an empty array, without :inet6, contrary to what flyctl launch does by default.

This post gave me the idea to try it: Connect to Cockroachdb from Phoenix app

3 Likes