connection is insecure (try using `sslmode=require`)
I've tried a lot of thing, endpointID, inserting sslmode, but nothing works and im stuck at this connection issue.
3 Replies
absent-sapphire•2y ago
Hey, often, the first thing to do is to test that you have the right connection details by connecting via psql.
https://neon.tech/docs/connect/query-with-psql-editor
What are you connecting from? Framework/language/driver?
Neon
Connect with psql - Neon Docs
The following instructions require a working installation of psql. The psql client is the native command line client for Postgres. It provides an interactive session for sending commands to Postgres a...
harsh-harlequinOP•2y ago
i've tried with .js and nothing works. With python it works
absent-sapphire•2y ago
Hey, I tested our node.js instructions with postgres.js, and they work: https://neon.tech/docs/guides/node
This is my .env file:
PGHOST='ep-bitter-glade-abc123.eu-central-1.aws.neon.tech'
PGDATABASE='neondb'
PGUSER='daniel'
PGPASSWORD='password'
ENDPOINT_ID='ep-bitter-glade-abc123'
Neon
Connect a Node.js application to Neon - Neon Docs
This guide describes how to create a Neon project and connect to it from a Node.js application. Examples are provided for using the node postgres and Postgres.js clients. Use the client you prefer. Th...