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.jsonc: Unexpected secrets_store_secrets

When I npm run dev: â–² [WARNING] Processing wrangler.jsonc configuration: - Unexpected fields found in top-level field: "secrets_store_secrets"...

Unzipping a large (500mb - 2gb) zip file

I currently have a worker that allows an upload of a large zip file. I then need to process this zip file and extract all of it's contents. I was hoping to do that via streaming which I thought I was doing with the below code. Is it possible to actually unzip a zip file this large on Cloudflare currently? Would Durable Objects be an option if workers alone aren't?...

Waiting in worker

Hey! Is there a way to wait/sleep in a worker without incurring costs for the waiting time? Basically a setTimeout, or something similar. I call an external service, and sometimes it's too quick. In 99.9% of the cases, the data is there 100-200ms after the first check. I have an extremely restricted frontend (very sandboxed), and I'm not allowed any client side code at all, so that's not an option. Using queues is also not an option.

How to export classes with Astro?

In the vite announcement post I saw that there's various ways to expose classes (for workflows and DO) — but I haven't found a way to do this in an Astro app. I think the issue is that the cloudflare adapter creates dist/_worker.js/index.js but there's no way to extend what is exported from this file. Has anyone else experimented with this and has more ideas to share? Otherwise I might try to open an issue on the Astro repo....
No description

Workers Sentry integration hasn't been working for a year.

Tried to setup the workers sentry integration and it fails to load projects from Sentry. Looks like this issue has been on going for about a year and there's been no response. It looks like a failed/unhandled network request to fetch the projects. Messaging here because it looks like no one has acknowledged this on Cloudflare: https://community.cloudflare.com/t/sentry-workers-integration-not-showing-projects/670669/3 https://community.cloudflare.com/t/500-error-when-trying-to-add-sentry-integration-to-worker/705731/4 https://community.cloudflare.com/t/workers-integrations-unlisted-sentry-projects/693813/2...

[ERROR] Error: COOKIE_SECRET is not defined. A secret key is required for signing cookies. -

Hey ! I am following the guide on setting up Remote MCP with oauth and I run into 2 issues (let me know if this is a wrong thread - couldn't find a better one). Link: https://developers.cloudflare.com/agents/guides/remote-mcp-server/#connect-your-remote-mcp-server-to-claude-and-other-mcp-clients-via-a-local-proxy 1. (minor) - guide assumes the localhost is available at 8787 but default worker port after cloning the repo is 8788. Maybe my env impacted this not sure...
No description

Trying to add a cron job to my worker.

I have an existing worker that uses Hono to expose some API endpoints: ```typescript const app = new Hono(); ......

Rate Limiting API open beta feedback

The new Rate Limiting API for workers (https://developers.cloudflare.com/workers/runtime-apis/bindings/rate-limit/) is quite interesting to e.g. API a rate limiting mechanism to a API hosted on Cloudflare Workers. However, I think there is a room for improvement to even offer more opportunities leveraging this API. 1) More Rate Limit result details like remaining and reset window ...

Error: Failed to load external module cloudflare:workers: Error: Cannot find module 'cloudflare:work

Hi, anyone got this error, this is from a new project created for next where I am trying to use the typed env variables using the guide in the documents https://developers.cloudflare.com/workers/languages/typescript/ last week I had a different error https://github.com/cloudflare/workers-sdk/issues/8726#event-17153868590...

Workers performance alerting

Hi guys I was wondering how everyone handles sending alerts when errors occurs in workers. I was thinking like receiving an email when the worker is responding with too many 500 status codes with a given threshold?...

Service Bindings on NextJS

Hey everyone, I'm trying to get a NextJS setup on workers. My NextJS app needs to make a call out to another worker, which is setup as a service binding. I've gone through the steps of using wrangler types to generate types, have the latest versions of everything. But whenever I make a call to getRequestContext() I get an error saying that the Cloudflare Request Context can't be loaded. The other challenge I've got, is that when I set export const runtime = edge I get another error saying ```...

How to manually trigger a cron job worker?

Hi, I have a worker deployed with a cron trigger set and now I want to manually trigger the deployed worker without waiting for the cron trigger time. Is it possible? how?

silly question about workers billing

hi. i'm currently screwing around with workers to see if it's viable for a thing i want to make. i'm using the free plan and i very specifically do not want to be charged (but cloudflare has my payment details because i'm using the free tier of r2). my understanding is that the free tier of workers limits you to 10ms CPU time per request and just kills the worker after that. and yet my median CPU time is showing as 617ms, see the attached image. is there a way i can verify if this is right or not, and more importantly, is there a way i can check if cloudflare has suddenly started billing me for workers paid or not...
No description

Help migrating from Vercel to Cloudflare Workers

I encounter with diverce to migrate from vercel to cloudflare workers, but every time I try to build I get this error https://github.com/safecircleia/Demo/tree/cloudflare-migration I'm really new into nextjs and cloudflare workers, so It might seem a small issue but I've been stuck at it for more than a day...

Emulating R2 locally

Hello! The R2/worker docs state: By default wrangler dev runs in local development mode. In this mode, all operations performed by your local worker will operate against local storage on your machine. I have a worker pulling files from R2, so no problems there. Also the wrangler deploy is quick, so generally I have no need of local storage. I am curious however what "operate against local storage on your machine" means. Is the general idea that we will setup env.BUCKET_NAME to point to some local folder to make this work? Does the R2 get (e.g. env.BUCKET_NAME.get()) somehow grok this local filesystem link?...

Uncaught Error: No such module "node:process"

I have an issue after I uploaded the functions Failed to publish your Function. Got error: Uncaught Error: No such module "node:process". I have compatibility_date = "2024-09-23" in wranget.toml....

"Update name in Wrangler configuration file to match deployed Worker" even though name is the same

Hey everyone, I took an existing github project of a cloudflare worker, removed my old deployed workers via the dashboard and then created a new one from that github repo. Reason being that I'm switching from my self-built github actions to the new worker preview feature. So I enabled it and now every time I push, the cloudflare integration opens a pull request to change the name of the worker in the worker configuration. The issue is that the name is exactly the same, and said pull request ends up with no file changes. ...

Unable to Authenticate request with 10001 error code

In workers for platform I can't delete my worker anymore. The same code stopped working 😦 I double checked the api key, account Id, email, verified the token. same for rest or js sdk. ...