Not able to use hyperdrive - Connection errors from localhost

For Workers & Pages, what is the name of the domain?

no domain yet

What is the error number?

NeonDbError: Error connecting to database: Error: internal error; reference = j3ss4ccis1efphq7r418cbqa

What is the error message?

NeonDbError: Error connecting to database: Error: internal error; reference = j3ss4ccis1efphq7r418cbqa

What is the issue or error you’re encountering

I am connecting to neon db via hyperdrive. I created a hyperdrive config and i didnt see any error. But when connecting from localhost (via Wrangler by setting env variable)it is throwing error. Also when i look at hyperdrive status it is always Inactive on the dashboard. Any way I can test if Hyperdrive config is working

Screenshot of the error

Can you share a code snippet? You probably don’t want to be using @neondatabase/serverless with Hyperdrive though.

I’d recommend postgres which is what I’m using in production with Neon without issue:

If running locally, you may need to make some configuration tweaks as per the documentation:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.