Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

Wrangler Local Dev Broken

Ah, 3.84.1 works locally? Does it cooperate with local dev against a remote connection string?

Cannot close prepared statement

I'm not using CLOSE statement on my query

I am also the one struggling this APAC

I am also the one struggling this APAC networking issue, I would appreciate too if you can go for it

I try to setup Hyperdrive with a tunnel

I try to setup Hyperdrive with a tunnel. Followed all the steps 3 times but get this error: "Failed to connect to database using the provided information: Internal error." - On the server "cloudflared tail --level debug" and in the dashboards 'Access authentication logs' i dont see anything happen. - Tunnel status on dashboard says "Healthy"....

Hi, has anyone been experiencing caching

Hi, has anyone been experiencing caching problem on hyperdrive? My website cannot connect to a database when connecting through hyperdrive. It looks like it is resolved for 5-10 mins after either switching on and off the caching. Metrics reads fine, and it can connect to the database with cache and without cache, but it only works for 5-10 mins on both cases....

Standalone postgres

Hello there, I have a postgres db setup on a machine, a CF tunnel pointing to that db, and Acces service auth setup above all, is there a way to get the connection string by API and simply use that in a nodejs project?

Connections from other services

Does Hyperdrive support connecting from non-Cloudflare services (e.g. from Fly.io)? Because it seems that changes from CF Workers through Hyperdrive is not propagated immediately to the "bare" DB, so my service in Fly.io that connects directly doesn't see it yet

IP Ranges | Cloudflare

Hello, has anyone faced "Internal Server Error" when creating Hyperdrive configuration? I tested DB connection from server and local machine. All cloudflare ipv4 ranges where allow listed for accessing DB (https://www.cloudflare.com/ips/) Also tryed ?ssl=true and ?sslmode=require . Any other hints how to fix the problem?...
No description

Tunnel debugging

Hi! I'm trying to set up a VPS with Postgres via docker compose and then bind it in a worker via Hyperdrive. I have followed the instructions line by line except when setting up the public hostname: instead of localhost:5432 -> postgres:5432. When the API calls the Hyperdrive returns 504 (Gateway Timeout) to the client. To make sure the DB is working, I have tried to access the database from the VPS console through postgres:5432 and it works fine....

This is a scenario where the Postgres

This is a scenario where the Postgres syntax is a bit unfortunate. SET in the context of UPDATE commands (keyword) and SET in the context of session state management (statement) are entirely unrelated, from the message protocol all the way down to the internals and back. They just happen to share the same name.
SET ROLE and such that are for session state management are going to be a problem, almost regardless of how you wrap them. We've done work to make the system more resilient, so you might get lucky, but generally I'd avoid those. The SET keyword in the context of UPDATE statements is fine, go nuts with it....

Howdy! Is there any type of logging

Howdy! Is there any type of logging viewable for hyperdrive private database tunnels? I have a postgresql server that is connectable directly via ssh port forwarding, via the tunnel established for hyperdrive cloudflared access tcp, and of course on the machine itself. However, running the recommended test code (const sql = postgres(env.XXXX.connectionString);) results in a connection timeout with no further info provided. Thanks!

The connection string is unique to the

The connection string is unique to the Worker you call it in and can’t be used outside Hyperdrive or your account, so it can’t be leaked. cc @thomasgauvin for docs here.

Hi Cloudflare team, we’ve been using

Hi Cloudflare team, we’ve been using hyperdrive for a while now and we really like it. Are there any plans on making hyperdrive available outside of workers?

Hey team, is it possible to use

Hey team, is it possible to use Hyperdrive directly from Pages rather than through Workers? Or are there plans for this in the future? For context, we are connecting to our pg DB directly from Pages now, as shown possible in this recent announcement here: https://blog.cloudflare.com/more-npm-packages-on-cloudflare-workers-combining-polyfills-and-native-code/ But we were wondering if we could also leverage Hyperdrive....

the docs for the hyperdrive have some

the docs for the hyperdrive have some mistakes: on create it says wrangler hyperdrive create <ID> [OPTIONS] but its not <ID> its <NAME> vs on wrangler hyperdrive update <ID> [OPTIONS] it is actually the ID, that was created before. also, on update, the --database is the only one who has no "origin" prefix - seems to be inconsistant, also why not just enable the same --connection-string parameter, when you anyway need to update everything...

Next.js and Hyperdrive

Hello there! Has anyone managed to make a NextJS app hosted on Cloudflare Pages to fetch its Postgres database through Hyperdrive?

Hyperdrive: making databases feel like t...

How to use google alloydb with hyperdrive? I can't specify 0.0.0.0/0 as the public IP. https://blog.cloudflare.com/it-it/hyperdrive-making-regional-databases-feel-distributed...

Mind sharing your account ID and the ID

Mind sharing your account ID and the ID of your Hyperdrive configuration? (both are safe to make public) We’ll take a look. Wonder if something strange with Xata’s new Postgres connection support....

In my environment, Hyperdrive is 10x

In my environment, Hyperdrive is 10x slower than direct connection, while latencies that are displayed Cloudflare web dashboard are not such bad(~100ms). The database region is Tokyo(Japan) and I accessed my Workers from Tokyo too. Does anyone experience a similar problem?...
Next