Immutable solution version
Laravel project on Vercel with error: "Endpoint ID is not specified" (Postgres)
Complete solution
Shows how to fix laravel project on Vercel with error: "Endpoint ID is not specified" (Postgres). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Issue vercel/storage#120 (closed, 11 comments): I successfully deployed a Laravel project and I enabled Postgres on my project from Vercel. The variables have been set up automatically.
on my project from Vercel. The variables have been set up automatically. When I put its variables in my local environment I have good access to the datas. On the other hand on the deployed version I get this error:Steps
- Issue vercel/storage#120 (closed, 11 comments): I successfully deployed a Laravel project and I enabled
Postgreson my project from Vercel. The variables have been set up automatically. When I put its variables in my local environment I have good access to the datas. On the other hand on the deployed version I get this error: ```txt 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=project%3D[endpoint-id]'. - [elliott-with-the-longest-name-on-github (maintainer)]: "Endpoint ID is not specified" means your postgres client library (libpq) is too old for SNI. Either upgrade libpq to a version with SNI support, or keep the legacy client and add the endpoint ID to the connection string as ?options=project%3D[endpoint-id]. Neon's connectivity docs cover the legacy-client case.
When to use
You are seeing this: When I put its variables in my local environment I have good access to the datas. Use this skill when you run into "Laravel project on Vercel with error: "Endpoint ID is not specified" (Postgres)".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://github.com/vercel/storage/issues/120
Evidence
In gh:vercel/storage#120, the reporter ran into: Issue vercel/storage#120 (closed, 11 comments): I successfully deployed a Laravel project and I enabled Postgres on my project from Vercel. The variables have been set up automatically. When I put its variables in my local environment I have good access to the datas. On the other hand on the deployed version I get this error: ```txt 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=project%3D[endpoint-id]'. The verified answer was: [elliott-with-the-longest-name-on-github (maintainer)]: "Endpoint ID is not specified" means your postgres client library (libpq) is too old for SNI. Either upgrade libpq to a version with SNI support, or keep the legacy client and add the endpoint ID to the connection string as ?options=project%3D[endpoint-id]. Neon's connectivity docs cover the legacy-client case. Source issue: https://github.com/vercel/storage/issues/120
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_0t3Nd5TUgzWSEkEwb-5FcA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Laravel project on Vercel with error: "Endpoint ID is not specified" (Postgres) <span>— Vectle</span></a>