ClientAuthentication Error using heroku-postgres
What do I have to do? This one is a heroku-postgres database (actually aws), it worked using a vercel-postgres database.
4 Replies
my config:
i added ?sslmode=require to my database url. now i get DEPTH_ZERO_SELF_SIGNED_CERT. I don't have acces to the account. how am I supposed to sign it with the cert of the database?
the vercel one is from neon
I still don't get it
What am I supposed to do?
Using neon now. heroku-postgres sucks.
I'm struggling with the same thing
Figured it out!
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
More: https://devcenter.heroku.com/changelog-items/2035Connecting to Heroku Postgres | Heroku Dev Center
Connect to Redis from different programming languages and frameworks.
The problem persisted for me when I did:
- put
sslmode=require
at the end of the connection string
- put ssl: true
in postgres(conn_str, {here})
and defineConfig({..., dbCredentials: {here})
until I replaced in dbCredentials
the url
object with each individual pg credential (including ssl: true
)