brettelliot Posted March 22, 2020 Share Posted March 22, 2020 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.orgDatabase: brettell_testUser: 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! Quote Link to comment Share on other sites More sharing options...
Krydos Posted March 23, 2020 Share Posted March 23, 2020 Remote access enabled. Quote Link to comment Share on other sites More sharing options...
brettelliot Posted March 24, 2020 Author Share Posted March 24, 2020 Thank you! It's working now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.