@ kaanyesil I was troubleshooting this similar error all day today. I solved it by running:
heroku config:set PGSSLMODE=no-verify
As specified here: Node.js, PostgreSQL error: no pg_hba.conf entry for host - Stack Overflow
Credit to boris’s reply here:
1 Like