You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
I'm trying to connect to a Neon DB hosted behind a Replit deployment, result: "Error:" #476
When I tried using PostgreSQL(), I got the error:
"RPosgreSQL error: could not connect neondb_owner@myhost:5432 on dbname "neondb": ERROR: connection is insecure (try using sslmode=require)"
This kept happening no matter how I attempted to manage the sslmode issue. Which is why I tried Postgres()
Activity
krlmlr commentedon Dec 3, 2024
Thanks, this is helpful.
Can you connect through the
psqlcommand line application? With what switches?genobobeno commentedon Dec 4, 2024
psql "host=myhost dbname=neondb user=neondb_owner password=pw sslmode=require sslrootcert=C:\path\to\my\cert\isrgrootx1.pem"
This connected
krlmlr commentedon Dec 11, 2024
Thanks.
https://rpostgres.r-dbi.org/reference/Postgres.html#arg-- describes (somewhat hidden) the additional arguments to
dbConnect(), and points to https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS . From what I can tell, a variant like the following might work:Do we need to improve our documentation?