NeonN
Neon2y ago
4 replies
skinny-azure

Endpoint ID is not specified!!!

Hi all!
I need help connecting to neon db from my laravel project please 😢
I'm facing this error:

SQLSTATE[08006] [7] ERROR: Endpoint ID is not specified. Either please upgrade the postgres client library (libpq) for SNI support or pass the endpoint ID (first part of the domain name) as a parameter: '?options=endpoint%3D<endpoint-id>'. See more at https://neon.tech/sni

And I tried the following solution but it didn't work

.env: DB_PASSWORD=endpoint=endpoint$passowrd

then i tried this and it didn't work as well:

// 'options' => extension_loaded('pdo_pgsql') ? array_filter([
// PDO::ATTR_PERSISTENT => true,
// PDO::ATTR_EMULATE_PREPARES => true,
// PDO::ATTR_STRINGIFY_FETCHES => true,
// PDO::PGSQL_ATTR_DISABLE_PREPARES => true,
// 'options' => 'endpoint%3D' . env('DB_OPTIONS')
// ]) : [],
(I specified DB_OPTIONS in the .env)
Was this page helpful?