GithubHelp home page GithubHelp logo

Comments (9)

tcc-sejohnson avatar tcc-sejohnson commented on May 18, 2024

Sorry, I think we're going to need a reproduction to be able to help with this one.

from storage.

matheus-delazeri avatar matheus-delazeri commented on May 18, 2024

I'm having the same issue as @jornatf. The problem seems to be stated by Neon here: https://neon.tech/docs/connect/connectivity-issues.

Looking at vendor/laravel/framework/src/Illuminate/Database/Connectors/PostgresConnector.php in my Laravel project, I was unable to find a method to set the options required (project=<endpoint_id>) through database configuration (at config/database.php .

I've tried to set my DATABASE_URL env variable to the same pattern as mentioned in Neon's page:

postgres://<user>:<password>@my-endpoint-123456.us-east-2.aws.neon.tech/main?options=project%3Dmy-endpoint-123456

But still no success :(

from storage.

asispts avatar asispts commented on May 18, 2024

I have encountered the same issue when using Symfony. @tcc-sejohnson, do you still need a test repo?

from storage.

tcc-sejohnson avatar tcc-sejohnson commented on May 18, 2024

Hey @asispts! Yeah, unfortunately I know very little about PHP. There's not much I can do without a repro. I'll ask around and see who we have internally that might be able to help as well.

from storage.

asispts avatar asispts commented on May 18, 2024

@tcc-sejohnson, here is the test repository: https://github.com/pts-archive/vercel-postgres-test

Let me know if you have any questions.

from storage.

tcc-sejohnson avatar tcc-sejohnson commented on May 18, 2024

Yeah, this seems to be an issue with an outdated installation of libpq. It looks like you're going to have to either upgrade to a version that supports SNI or adjust your environment variables to provide a connection string compatible with your Postgres library. Googling the error took me to a pretty helpful Neon document: https://neon.tech/docs/connect/connectivity-issues

That should give you all the information you need to get going with a legacy client.

from storage.

asispts avatar asispts commented on May 18, 2024

Adding the options argument doesn't work, as @matheus-delazeri mentioned. Can Vercel team just upgrade the outdated libpq? I'm uncertain whether Symfony will support the passed argument.

from storage.

jornatf avatar jornatf commented on May 18, 2024

Personally, I finally opted for another solution outside Vercel (MySQL) for my project...

from storage.

vvo avatar vvo commented on May 18, 2024

This seems to be a vercel-php issue: vercel-community/php#458, let's continue the discussion here

from storage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.