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

Queue consumer bug with Terraform (CDKTF)

I'm running into an issue with cloudflare_queue_consumer Here’s the snippet: ``new QueueConsumer(this, ${applicationName}-queue-consumer`, { accountId: cloudflareAccountId.value,...
No description

workers-types and wrangler types cannot coexist in monorepo without breaking ENV type

I have a main RRv7 application which generates its types with wrangler types command. However, within the same monorepo I have an astro docs site which uses the astro/cloudflare package, under the hood this still uses the cloudflare/workers-types package. When I install this in my monorepo, all my types for ENV that are coming from wrangler types in the other package are undefined / don't resolve correctly. The namespace appears to be causing a conflict. Is there any way to handle this when I don't have control over a dependency that is still using the workers-types package?...

Errors in websocket worker tail

I just made my very first websocket worker and deployed it. It works just fine, however when I tried to see the logs with tail I encountered some strange behavior: no logs show while the connection is active and when i disconnect all log entries show up with two identical errors stating: Error: The Workers runtime canceled this request because it detected that your Worker's code had hung and would never generate a response. Refer to: https://developers.cloudflare.com/workers/observability/errors/ the linked page stated that I need the following block to prevent this: ```js server.addEventListener("close", () => { server.close();...

waitUntil causes IoContext time out

I'm getting the following warning for ctx.waitUntil
IoContext timed out due to inactivity, waitUntil tasks were cancelled without completing.
This causes my wall time to be 30 seconds long as waitUntil waits until it is timed out. My question is how to get waitUntil to stop waiting....
No description

Unexpected fields found in top-level field: "ratelimits"

wrangler 4.43.0 "compatibility_date": "2025-10-14" Added ratelimits field to my wrangler file. The bindings show in the env but when i run the code the binding is undefined. I've tried deploying and the dashboard doesn't show the ratelimit bindings. When building i get the warning Unexpected fields found in top-level field: "ratelimits"

Using env in monorepo packages

I want to be able to use env in other monorepo packages without the need of wrapping it into a function, how I can do that? Currently using NextJS, Hono monorepo setup and I have database setup with drizzle...

Workers CPU limit is ignored in paid plan

I set the CPU limit to 10 seconds in CDKTF, but the value is ignored and defaults to 50 ms. When I open the edit screen, the input correctly displays the 10 second value I defined in CDKTF. However, if I remove one zero, add it back again, and then click redeploy, the value updates correctly to 10 seconds 🤔
No description

Cannot deploy app with email routing and sveltekit CF adapter

I wanted to add email routing to my app (sveltekit adapter deploy on workers) and I am getting the following error: Cannot find module 'cloudflare:email' imported from My wrangler version is: ^4.42.2...

Asset upload and changeset request fail

Hi there, I am getting the following errors from Wrangler (including by using Workers Build): When I have static assets in the deployment: ```...

Good patterns for async workflows local dev using queues and r2 events

Hi, I've built a reasonably complex application which has: - a pages worker serving up a Next.js website - an external api worker using Hono - R2 buckets...

cpuExceeded on paid plan

I'm getting cpuExceeded errors on a paid plan. In worker settings cpu limit is set to 30000ms In request logs it shows:...

Sentry sourcemap upload causing workers to run out of memory on worker build

I am having issues when trying to auto-generate and upload soucemaps for Sentry when building my SvelteKit project. I end up getting a memory heap error. Is there any solution to this?

500 (Error 1101) with Pages static assets

Hi everyone, I have a small static site hosted on Cloudflare Pages with only 5 static files. It’s been working perfectly for about a month, but since yesterday all requests started returning a 500 error (Error 1101). I haven’t made any recent changes to the project. I opened two P1 support cases, but I’m currently unable to view or access them from the dashboard....

trying to send email from cloudflare workers

I'm trying to send email from the backend of my svelte-kit app on cloudflare workers. When my app tries, it gets an error:
TypeError: Email message building is experimental - need to enable `enableSendingQueuing` as an experimental flag
TypeError: Email message building is experimental - need to enable `enableSendingQueuing` as an experimental flag
...

Worker to r2

is worker to r2 operations are free (not counted towards Class A operations)

Variables and secrets sections appears twice in the dash UI

Hmm, i'm quite puzzled about why this section appears twice
No description

Moving from github pages?

I Have been considering that i may move my site to cloudflaire, should I? What are the benefits or cons in that? My site is currently static html + css (can currently be found here: https://linuxluola123.github.io/nettisivu/).

Worker plaintext env vars that are modifiable AND persisted across deploys?

Is there a way to have a Worker env var such that: 1. plaintext (current value is visible in dashboard) 2. Modifiable in the dashboard 3. Your dashboard modifications are persisted through Worker deployments ...

Image Background Removal In Workers

I am looking to achieve image background removal in my worker and stumbled across this tweet https://x.com/CloudflareDev/status/1961054980606947832 and the associated blog post. This suggests that it should be possible to achieve this, either via a binding with the cloudflare images or via the worker AI. Unfortunately I can't find any reference anywhere else to this beta. I dont see any AI model anywhere in the documentation, nor do I find it mentioned anywhere in the image API documentation. Anybody know what the deal with this is? Also any other suggestions on how to achieve this in a worker is appreciated....