could not translate host name "pochitaaapidb.internal" to address: Name or service not known

Im trying to connect my flask app to the db but i get:
could not translate host name “pochitaaapidb.internal” to address: Name or service not known.
i used the exact same credentials generated by fly after attaching my app to the postgres app. this is the base_uri:
postgresql://user:password@pochitaaapidb.internal:5432/pochitaapi
i also tried changing .internal with .flycast and still not working

Hi… It looks like there might be a transcription error in the Postgres app name; typically it would be pochitaapi-db.

Try comparing to the options present in fly apps list, to get the exactly punctuated string.

Hope this helps!

Added postgres

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