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

Is the workflow creation rate limit 100 per 10 seconds for createBatch?

In other words, does the rate limit apply to calls to create or createBatch, or to the absolute number of instances created in a given time window? https://developers.cloudflare.com/workflows/reference/limits/...

How it is calculated 10ms CPU time for free tier

I deployed for workers quiet trivial sveltekit app - retrives data from d1 and sends to the user. I noticed that my worker is exceeding free tier of CPU usage by a lot, but is seems that app is still working. Multiple requests are under 10ms and multiple over 100ms. Will my account be locked-out ? What are rules for killking app which exceeds free plan. Is my app exeed this plan ? Thanks
No description

Does cache rules works with workers?

I've build worker based svelte app. I wanted to cache my data for 8hours (content is really changed). I set up rules cache everyhting (frist screenshot). Then in worker observability logs i see multiple request for GET / which are served within same - small amount of time (screenshot nr 2), why is that? Does cache rules works with workers ?
No description

OpenNextJS No space left on device

Hello, My build is generating fine Worker saved in .open-next/worker.js 🚀...

Are bindings "secret"

Like I wouldn't push ```json "d1_databases": [ { "binding": "DB",...

Crons are running on the 54th second of the minute instead of the start?

Anyone know why my "every minute" cron is running on this weird timeframe? Shouldn't it on the minute and not 54 seconds into the minute?
No description

Is it possible to use MongoDB in a worker?

Hey, I want to use MongoDB as my db, but I read that the nodejs mongodb driver uses websockets to connect to mongodb which isn't viable in a worker, I read that it's possible to use Atlas mongodb Data/HTTP API but it seems that it is deprecated, is there a proper way to user mongodb in a worker? Thanks....

How to define props in the MCP server?

I want to pass props from the fetch handler to the MCP agent tools. How can I do that? I tried setting props in the ctx object that gets passed onto the MyMCP.serveSSE(...).fetch() function, however that doesn't seem to get passed to the tools. this.props is an empty object in the tool handler....
No description

Project structure for functions and D1

I'm having a hard time understanding what the best practice is when it comes to implementing the cloudflare stack with a react app. So currently I have a vite react app and the app is in /src I have wrangler.jsonc in the root. I want to make functions that use D1. At first I saw you just make /functions and put the files in there. Seems good to me but I don't see where you configure D1 there without mixing it with the react app. I've also seen the /workers directory used too. Not sure which one to use or where to put D1 / drizzle config stuff....

Can't use env from cloudflare in deployed workers with ci/cd

My Wrangler GitHub Action isn't applying environment variables set in the Cloudflare dashboard to deployments made by uploading the dist folder. The Action seems to require a build step first, but even after building, the uploaded dist content doesn't access the dashboard-configured environment variables. ```yml jobs: deploy:...

`cf.asOrganization` is `undefined` for some requests

Ran into this in production today where req.cf.asOrganization was undefined for some requests. The IncomingRequestCfProperties docs show this as being a string and not optional. Was able to fix the issue by changing our code (which is based on worker-sys) to treat the property as optional:...

Poll-maker error 1015

Hello! I'm attempting to build out some polls to use within our organization's website (embedded inside web pages) - I'm running into issues with the poll-maker.com site with 1015 error codes. This occurs when I attempt to access the backend setting of the website. I have a free account and have been able to create/edit polls until running into this issue. Any tips?

Clarifying `Maximum Workflow instance creation rate` Limit

The createBatch documentation says
call to createBatch is treated the same as a call to create (for a single instance) and allows you to work within the instance creation limit.
Does this imply that when using createBatch , if you were to create 100 instances per batch (the maximum), that you could create 10,000 instances (100 per batch * 100 calls) per 10 seconds?...

Worker build fail

``` 15:56:36.592 NoSpaceLeft: Failed to open node_modules folder for ansi-regex in /opt/buildhome/repo/node_modules/wide-align/node_modules/string-width/node_modules/strip-ansi/node_modules 15:56:36.593 NoSpaceLeft: Failed to open node_modules folder for mimic-fn in /opt/buildhome/repo/node_modules/publish-browser-extension/node_modules/open/node_modules/default-browser/node_modules/bundle-name/node_modules/run-applescript/node_modules/execa/node_modules/onetime/node_modules 15:56:36.593 NoSpaceLeft: Failed to open node_modules folder for graceful-fs in /opt/buildhome/repo/node_modules/@pnpm/network.ca-file/node_modules 15:56:36.593 error: NoSpaceLeft creating node-gyp tempdir...
No description

Vite, Cloudflare, and environment specific wrangler config without rebuilding

Before Cloudflare released the official Vite plugin, the way to deploy across environments was to use the --env "foo" flag, which would automatically pick up your environment configuration for "foo" and deploy to my-worker-name-foo. With the new plugin, when building with Vite, the wrangler config is flattened and output to the build directory, and is required to deploy to the right environment. The problem I have is, I'm deploying to several environments, and the only difference between each of them is the wrangler config's environment. ...

catch all for email subdomains.

hi , is there a roadmap for allowing catchalls to all subdomains in Email forwarding?

Daily usage limit doesn't reset 00:00 UTC

When trying to use Workers AI I'm getting this error: 4006: you have used up your daily free allocation of 10,000 neurons, please upgrade to Cloudflare's Workers Paid plan if you would like to continue usage. In dashboard it's currently showing 0/10k "Daily usage (resets at 00:00 UTC)-Neurons used today: 0/10k"...
No description

I am unable to get a secret key to work when trying to create a backend proxy through workers

I'm getting a "Cannot read properties of undefined (reading 'UPTIMEROBOT_API_KEY' " Type Error

Error rendering dynamic pages: Internal Server Error

I get this error when trying to render a dynamic page on Cloudflare workers. [wrangler:info] GET /forms/public/superteam-feedback-35aed5d7 500 Internal Server Error (11ms) ✘ [ERROR] Error: No such module "next-on-pages-dist/functions/forms/public/[slug].func.js". ...

Browser Rendering API – Active Sessions Unusable

I’m seeing a consistent issue where sessions marked as active are actually unhealthy and unusable. It's been around 7 hours since this issue started. 🧪 I ran a health-check script across 30 active sessions (browser rendering logs don't show these 30 sessions - only can be seen through the puppeteer.limits API): - Healthy: 0...