Why do I get "no pg_hba.conf SSL is off" when deploying Flask app to Heroku?

0

I'm following a Udemy course and deploying a Flask app to Heroku. The problem is when I type

heroku pg:psql --app *appname* 

I get :

psql: SSL SYSCALL error: Connection reset by peer (0x00002746/10054)
FATAL:  no pg_hba.conf entry for host "37.125.61.91", user "whlcorobevpteq", database "dcmbbmbl1bbrgd", SSL off

Here is my relevant code:

app.config['SQLALCHEMY_DATABASE_URI']='postgres://whlcorobevpteq:a234a0b5f7300d9f6e43d566b5c849c3b1b20fb8d87ad6b994df2c18b686d624@ec2-174-129-240-67.compute-1.amazonaws.com:5432/dcmbbmbl1bbrgd?sslmode=require'

db=SQLAlchemy(app)
postgresql
ssl
heroku
flask
asked on Stack Overflow May 4, 2019 by ronan23 • edited May 4, 2019 by Gino Mempin

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0