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

Durable Objects Deployment Error

I expirience some issues in my CD (gh actions) with wrangler deployment of worker with durable objects. First deployment is always ok, but then any further updates fail with error:
Cannot apply new-sqlite-class migration to class 'BattleDurableObject' that is already depended on by existing Durable Objects
Cannot apply new-sqlite-class migration to class 'BattleDurableObject' that is already depended on by existing Durable Objects
i do not remove this migration form my wrangler.toml config. Docs say that for any further code updates of the DO executing wrangler deploy is sufficient. Have anyone faced this issue before? Also i am considering, if there are anything like local state based on which wrangler determines if it should run migrations or not?...

Missing `waitUntil` option -- what's that?

As per subject. I keep seeing that message in Workers Logs (I enabled observability) for my queues. My queue is running Browser Rendering

Build failing with ENOSPC: no space left on device for monorepo project on Cloudflare Workers Build.

Hi everyone, I'm encountering an error while trying to build my monorepo project using Cloudflare Workers Builds. The build process fails during the yarn install --production step with multiple "ENOSPC: no space left on device" errors. Build Command:...

Dependency Conflict in Next.js Cloudflare Template during npm install

Hey everyone, I'm using the Next.js Cloudflare template and trying to deploy using these settings: Build command: npm install --force ...

Failed to deploy - authentication issue during secrets pull

Hey I didn't have scope on the token for secrets store read. However, I added it and my CI job failed anyway. Does permissions scope have some lag on it which I have to wait?...

Fetch question

I developed a worker that fetches mirror page from another domain addEventListener('fetch', function(event) { event.respondWith(handleRequest(event.request)) // handleRequest is my own async function });...

R2 seems to be ignoring the CORS policy

I have a bucket that i'm trying to upload to via signed URLs generated using aws-sdk Node package The signed URL always fails PUT request with Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Here's my CORS policy, which should work? What am I missing? ...

Cannot read properties of undefined (reading 'basePath')

I am using Hono with Chanfana with Cloudflare Workers and I can't seem to figure out what is causing the error in the title of this post. I followed this example for nested routing: https://chanfana.pages.dev/advanced-topics-patterns However, it just shows that error. I tried using the exact example in the documentation and it still crashes with that error. Does anyone know how to fix this?...

MCP server /claude desktop and editing dns records

i have MCP(server) tools setup in my Claude desktop app and i would like it to list my live domains and then ask the AI to change/delete/or add new dns records to a certain domain in my list can this be done as at the moment if i ask it to list my zones i get example.com (ID: zone-abc123, Status: active) test.com (ID: zone-def456, Status: active) and theses are not my domains in my account...

Cloudflare Rate Limiting not being in Effect

Hey there, I'm trying to get rate limiting working on my hono app, but nothing seems to be working?? I've configured it correctly and even put down temporary crazy limits and it doesn't seem to rate limit my functions from being called. (Yes, I know it doesn't stop someone from sending 20 requests or whatever but my functions are still being called 20 times, even after checking for the rate limits) jsonc config:...

help with astro app backend functions on cloudflare workers

I've created a minimal reproducible repo on GitHub for an Astro app deployed to Cloudflare Workers. The app includes functionality to call a server-side function that should log messages, but I'm encountering issues: No messages appear in the Cloudflare Workers logs section after deployment No requests seem to be reaching the backend at all...

Deployment Fails Due to "No Space Left on Device" (ENOSPC) Error During NPM Install on Cloudflare

🛠️ Problem Description: Hey everyone, I'm facing an issue while deploying my project on Cloudflare. The build fails during npm install due to a "no space left on device" error. 💡 Things I’ve Tried / Notes:...
No description

Workers Assets 404 Behavior

I was wondering if anyone here has played with with workers assets 404 behaviors? I have a super simple setup with
not_found_handling = "404-page"
not_found_handling = "404-page"
but it won't serve the 404.html i have in the specified directory in assets and instead throws an exception when a page doesn't exist. ...

Api to Add or Update D1 Bindings in Workers ?

Is there any API to Add new D1 Bindings or update existing one on a Cloudflare workers Or is there any Cloudflare SDK ?...

Version metadata lacks timestamp field

I'm trying to get the deployment date of my worker from inside the worker so it can handle the if-modified-since header appropriately. But the binding gives me an object which lacks the timestamp field described in the documentation at: https://developers.cloudflare.com/workers/runtime-apis/bindings/version-metadata/...

Error code 520

Cloudflare Ray ID: 9314ec4d8f4af9af sorry to bother, i don't know where to post for giving help. I try to download some anime on torrentgalaxy.com but the site put a page and say that the hoster of the site, has an error, and they say on the page that i could help by sending the information i've put on top of the message, pls can somebody could tell me where i could put those information for helping the site to fix the error. sorry for the bother,hope you make it....

ETA for being able to set watch paths in `wrangler.jsonc`?

To configure watch paths for Workers Builds (https://developers.cloudflare.com/workers/ci-cd/builds/build-watch-paths/) I have to use the dashboard. The config for it (https://developers.cloudflare.com/workers/wrangler/custom-builds/) is currently not honored (https://developers.cloudflare.com/workers/ci-cd/builds/configuration/). Is there an ETA for when that config option is going to be honored?...

Migrated Astro from Pages to Worker. How can I add queue handler?

I migrated a Astro project from Pages to Workers. This went all well and good no issues. I wanted to see if i could consolidate my Queue Handler from another worker into this worker. But can't find anywhere to say where it goes or if it's even supported. Everywhere i've put it so far wrangler always says the queue handler is missing. Has anyone else had success in this or even attempted this?

help with astro framework deployment to cloudflare workers

I'm deploying an Astro project to Cloudflare Workers following the static assets guide, but I'm stuck with API routing. With React projects, Cloudflare creates separate src and worker folders, with backend code in the worker folder. However, my Astro project doesn't have a worker folder. I tried manually creating a worker folder with code to handle API routes, but all fetch requests to /api/... return 404 errors, despite my worker code being set up to respond with test messages. How do I correctly structure an Astro project for Cloudflare Workers to support both frontend pages and API routes? Is the setup different from React projects?...