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

Worker cron invalid?

I wanted to run a cron every sunday on 3 AM, however when deploying, I get an error saying the cron trigger is invalid: "0 3 * * 0" As you can see here, it should be valid: https://crontab.guru/#0_3_*_*_0 How can this be?...

Caching NextJS app on worker has long KV cache put times

Hey everyone, we're implementing a custom HTML caching layer in a Worker and running into an unexpected blocking issue that seems to contradict the documentation. We're using ctx.waitUntil() for a background KV write, but the operation is blocking the client response. The Problem...
No description

Worker force exit when HyperDrive high concurrency connection

Hello, I'm try to use cloudflare features I didn't experimented, and reached to HyperDrive. Currently, my service is growing very fast, so getting out of free tier, keep draining my budget double at month - so I decided to try HyperDrive instead of D1. It works great at first time, but with 1 hours of monitering I see very big problem - HyperDrive connection occurs worker timeout with code force exit. ...
No description

Faster open-graph images generation?

We are using workers-og and it takes about 1s to generate OG image, which with inreasing share rates of our page is slowly becoming an serious issue. IS there any better approach to do it?

Custom hostname not mapping to worker

Hi I’m running into a Custom Domain issue with Workers. I have a Worker (pages-lp) that dynamically serves landing pages for user-created subdomains. I’m using Cloudflare Custom Hostnames / Custom Domains for this....

Feature suggestion: Add "projects" folders/tags for various resources

Hosting a couple projects with Workers, KV, etc. isn't a big deal. However, expanding further can start to snowball into a bit of chaos. It would be fantastic if we could group/tag projects so that we can filter out things to only what we're looking for. They should be available in all areas and shared across (making a tag for Workers also makes it for KV, DO, R2, etc.). Color coding and tiering tags (folders) would also be helpful. Also making the filters sticky across all areas (so if you filter in Workers, but then go to R2, the same filters are still applied). Basically looking to clean up the navigation experience so it's easier to find what you're looking for rather than always being sorted by most recent....

ERROR DURING DEPLOYMENT (PAGES)

Whenever I try to create a project in NextJS with App Routes, this error occurs during deployment. I have tried to create several new projects, and this error always occurs.
No description

Argon2 with Tsc

Hello Devs, what is the normalized method to install argon2 in typescript worker?

CF Request Limit

we got ddos, which filled our cf workers limit, any way to fix it??

binding services to a sandbox

hey folks, supposing I wanted to bind a sandbox to an internal service (separate DO), is that possible? I was digging around the docs and didn't find anything too promising, but wanted to double check here. basically I want to be able to do something like: worker → create sandbox, execute commands in a loop → sandbox-backend (handles things like auth)...

Build Fails to Initialize and Times Out on Cloudflare Build

Description: The Cloudflare build process fails to initialize and eventually times out during environment setup. Logs: 07:24:28.466 Initializing build environment... 07:29:28.930 Build failed to initialize and was timed out...

Worker Build failed to initialize and was timed out

Hi all! My worker build has being consistently failing since yesterday: 03:35:52.400 Initializing build environment... 03:35:52.400 Initializing build environment... 03:40:52.348 Build failed to initialize and was timed out...

What's the right way to go about debugging env.ASSET.fetch being too slow?

Out of the blue my landing page is loading suuper slow, it is pending for over 6 minutes. It's a very simple CRA app with no server or anything. Where can I see the traces for this kind of requests? I only see up to when that function is hit and nothing more. I was running some ads and this is costing me money. I am on the $5/mo plan...

I have created multiple DO, and it still doesn't show in Durable Objects in the Dashboard. I binded

I have created multiple DO, and it still doesn't show in Durable Objects in the Dashboard. I binded them with Worker but worker throws error the DO doesn't exists. I assume it's cloudflare issue

DB Connection from Pages - 525 Error Despite Open Firewall

Hey all, hitting a strange 525 SSL handshake error with my Postgres DB on Cloudflare Pages. It works perfectly everywhere else (local, Vercel, etc.). I've already ruled out IP allow-listing; my DB firewall is completely open to 0.0.0.0/0 and ::/0 for testing. Any ideas?...
No description

Traces not working

I configured traces for a Hono app that I'm running on workers, but I don't see any traces after significant traffic has already flowed (and shows on invocations/events). Any ideas? ```jsonc { "observability": { "traces": {...

How to patch local Sandbox instance to return correct URLs

When a sandbox is created in the local development environment, it generates a 3000-random-sandbox.localhost URL (via a Durable Object). However, this isn’t a real URL since there’s no subdomain support or proxy running. Instead, Docker assigns static ports — for example, 39300. Now i could just replace the value manually, but if I start many sandboxes ports cannot scale. Why is durable object returning "random" urls, it should return whatever docker returns as exposed value?...

Initializing build environment taking too long / Build failed to initialize and was timed out

Currently trying to deploy a frontend react+vite app where the frontend itself is part of a monorepo (turbo) At first, it was getting past the Initializing build environment environment build stage (first build that triggered when i imported the repo), but i cancelled the build when i realized that i haven't pushed the changes that had the cf vite dependencies, and because I haven't set all of the environment variables now after i have set the variables and pushed the latest code, it just gets stuck at the initial build stage for some reason ( Initializing build environment )....

calling ctx.waitUntil multiple times

According to the document, calling ctx.waitUntil will keep the worker alive for 30s(wall clock) until the given promise resolves. My question is, if I return a ReadableStream in the fetch event, can I extend the worker life time (wall clock) more than 30s by calling ctx.waitUntil multiple times?...