Comments (14)
If you're using Laravel, you can use this package https://github.com/braumye/laravel-vercel-postgres that add the endpoint to the options of the dsn and it worked for me.
Neon document: https://neon.tech/docs/connect/connection-errors#b-use-libpq-keyvalue-syntax-in-the-database-field
from php.
Hi, I will prepare PHP update with postgres14. I hope it will solve your troubles.
from php.
Hello, The official work-around that seems to work is to append the endpoint_ID with the password in the connection string like
DATABASE_URL=postgres://dbuser:<endpoint=<endpoint_id>>;<your_password>@ep-broad-snowflake-sdexc.il-central-1.aws.neon.tech/neondb?pgbouncer=true&connect_timeout=10
So basically, add this --> endpoint=<endpoint_id>;
(including the comma)
Alternatively, if you are using database connection parameters, you can use the following
...
DB_PASSWORD='<endpoint=<endpoint_id>>;<your_password>'
In our case, the endpoint ID is --> ep-broad-snowflake-sdexc
(as seen in the connection URL above)
Hope this helps.
from php.
thanks.
from php.
I am also facing that issue too, we have to update that in vercel php.
from php.
Related: vercel/storage#120
from php.
Hi. Do you know which exactly libraries needs to be upgraded?
from php.
pgsql Liv I think so
from php.
Same here. Is there any way to upgrade the libpq?
The [email protected] - PHP 8.2.x (https://example-php-8-2.vercel.app/) shows the version of libpq is 10.21, which is unsupported now.
The latest version is 16 and according to neon.tech (Vercel's Postgres provider), SNI support was added to the libpq in version 14, which was released in September 2021.
from php.
I ran into a similar problem today. I make connection via pg_connect and to solve the problem I added
options='endpoint=ep-shrill-disk-*****'
The connection worked successfully
$connect_data = "host=ep-shrill-disk-.eu-central-1.aws.neon.tech port=5432 dbname=php-neon user=daniil.bazhenov password= sslmode=require options='endpoint=ep-shrill-disk-*****'";
$db_connect = pg_connect($connect_data);
from php.
@dbazhenov
I was having the same issue in laravel vercel, How to do this "options='endpoint=ep-shrill-disk-*****'" in laravel,
i tried but not working
from php.
I encountered the same issue during deployment today and hope that Vercel can promptly upgrade pdo_pgsql to support SNI.
from php.
I faced same error today. I think it is because of pgsql lib.
from php.
hi i have a same error, i trying to use laravel with postgres, but when i access database to get data i have this error: "could not find driver (Connection: pgsql, SQL: select * from "users" where "email" = [email protected] limit 1)". Does anyone know how to solve this?
from php.
Related Issues (20)
- How to setup composer with vercel-php HOT 1
- [email protected]: php: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory HOT 9
- gmp extension missing
- PHP GMP extension missing
- Public Image HOT 1
- downloaded index.php instead of load the app HOT 10
- The /var/task/user/bootstrap/cache directory must be present and writable. HOT 1
- Vercel Blob Support HOT 1
- NPM install errors since start of 2024 HOT 6
- could not find driver `pgsql` HOT 3
- Unable to load dynamic library 'mongodb' and 'swoole' when deploying HOT 5
- Error: Exited with 4, Something wrong with the build process, Error: Command "vercel build" exited with 1 HOT 2
- Fatal errors not reported in vercel logs HOT 4
- mongodb module missing in 0.7.0 HOT 1
- Change / Appoint php version HOT 4
- Vercel 0.7.0 + Laravel 10 HOT 2
- the example can't run,what happened? HOT 4
- PHP Built-In Server HTTP error: Error: connect ECONNREFUSED 127.0.0.1:8000 HOT 17
- Can we support php trader
- Can we increase the **max_execution_time** and **post_max_size** here? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php.