Jump to content

Recommended Posts

Posted

Hi,

 

Im writing a flask app that connects to postgres. My script errors with a 500 and after reading the forums I'm wondering if it's because i need to request remote access. (But i don't know why my script which is running locally would need remote access).

 

Here's the error:

 

psycopg2.OperationalError: FATAL: no pg_hba.conf entry for host "::1", user "brettell_user", database "brettell_test", SSL off

 

Even if remote access is not the cause of my error, I'd like to enable it from any IP because I will want to query it using datagrip anyway. Here are the details:

 

Host: johnny.heliohost.org

Database: brettell_test

User: brettell_user

 

If remote access isn't the problem, perhaps you can take a quick look and let me know what's wrong.

 

Thanks everyone!

 

 

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...