Introspect failing no pg_hba.conf entry for host

I'm trying to introspect an existing postgres db. It's hosted on heroku and I'm facing no pg_hba.conf entry for host error. I am able to connect with TablePlus to the same db without issues. As I'm attempting to also use ?ssl={"rejectUnauthorized":false} to work around this I'm getting Cannot use 'in' operator to search for 'key' in {"rejectUnauthorized":false}. Any hints on how I might get this one connected?
5 Replies
polkovnik
polkovnikOP•17mo ago
Got it working by using ?sslmode=no-verify
Laurens Lavaert
Laurens Lavaert•16mo ago
Thanks! Had the same issue 🙂
Peter Boling
Peter Boling•9mo ago
Struggling with the same thing, but adding ?sslmode=no-verify hasn't worked yet
Peter Boling
Peter Boling•9mo ago
I had to set sslmode=require, or ssl: true, everywhere possible, and then it suddenly started working! It appears this is now required by Heroku always. https://devcenter.heroku.com/articles/connecting-heroku-postgres#heroku-postgres-ssl
Connecting to Heroku Postgres | Heroku Dev Center
Connect to Redis from different programming languages and frameworks.
Want results from more Discord servers?
Add your server