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

Cannot find module 'cloudflare:workers' when creating RPC WorkerEntrypoint

I'm following the first example in https://developers.cloudflare.com/workers/runtime-apis/rpc/, but encounter this "cannot find module" error in vscode. If I delete the import WorkerEntrypoint, vscode can't find the class. This is not a new project but an attempt to add RPC to an existing worker codebase.

How long for a new custom domain routed worker to go live?

I decided to switch from hosting on GitHub Pages to hosting with a Cloudflare worker with an associated custom domain. I know that officially, it's said that it can take 24 hours for DNS changes to propagate, but I feel like that's very conservative. It's been about an hour, and from dig I'm getting Cloudflare A records. But my site isn't coming up, and I feel like something's wrong. I've actually published this exact site (same version of the same code) via wrangler versions upload, and that comes up exactly as documented and expected. But wrangler deploy hasn't gone as smoothly. What should I look at to get a better sense of whether I've configured everything correctly, or whether I just need to be patient and wait for some propagation?...

Is there a wall time limit for the free workers?

doucmentation seems to state that we dont but in practice all my calls die at 29,999 ms which is oddly specific async fetch(request, env, ctx) { .... ctx.waitUntil(processingPromise);...

Nodemailer compatibility

Hello, I need to know the way to make "nodemailer" work in a cloudflare worker. I have tried it at my end but it doesnt seem to work correctly....

Cloudflare Containers - API authentication issues despite Workers for Platforms enabled

"Hi! I'm trying to use Cloudflare Containers (part of Workers for Platforms) but getting authentication errors with both API tokens and OAuth. Have Workers for Platforms enabled ($25/month) and proper permissions, but containers commands fail. Setup: ...

@cf/meta/llama-4-scout-17b-16e-instruct not returning valid JSON schema back

Hi guys, not sure if this is the right place to ask but i'm encounting a weird issue. I'm wanted to test out the Workers AI Batch, but for some reason i could not get this to work properly so i continued normal single messages. Right now i'm testing out the @cf/meta/llama-4-scout-17b-16e-instruct model with my code but i cant seem to get any 'valid' json response back: ...

Handling of network routing seemingly random

I am proxying a fetch request to my users, making the worker act as a proxy. Checking the headers of the request seems to give seemingly random locations for where this is proxied from. I require the worker to be extremely close to the user. For example: 1. Request from user located in MCI location 2. First test responds from CDG...

Fonts look bad in Browser Rendering screenshots

Hi there! When using the Workers' Browser Rendering (I'm trying via API) screenshotting feature, the fonts look bad. I tried multiple combinations of waitFor and timeouts, but I couldn't get it to look right. When looking online, I stumbled upon this person having the same issue (and suggesting a fix), but that forum post had no replies and was auto-closed. Has anyone found a workaround, or is the CF team w...

Worker serves raw HTML instead of rendering on custom domain

Hi everyone 👋 I deployed a Worker that serves static files (from R2) including index.html. On the Worker’s dev URL → the page renders fine. ...

Worker site not working

Hi, So I'm currently using cloudflare pages to host a docusaurus static site that is on github repo. I just imported that in cloudflare pages and it worked. But when I do the same in worker, then I can't make it work. When I try to save this file, it never saves and cloudflare deletes it. ...
No description

Deploy Button can not deploy queues

I use the deploy button for deploying a worker with a queue binding. When I deploy the repo, I see an error: [ERROR] Processing wrangler.jsonc configuration. Repo to reproduce, updated wrangler.jsonc and error logs are here: https://github.com/shchahrykovich/cloudflare-deploy-button-with-queues-demo

AI Gateway + OpenAI RealtimeClient

Hi, Is it possible to connect to OpenAI realtime endpoint through the AI Gateway realtime endpoint (wss://gateway.ai.cloudflare.com/v1/<account_id>/<gateway>/openai?model=gpt-4o-realtime-preview-2024-12-17) directly from a worker?. Is there way a to achieve this?. Thanks....

Is it safe to ignore TS errors for promise pipelining?

I am trying to better understand RPC promise pipelining and the using directive from the [docs],(https://developers.cloudflare.com/workers/runtime-apis/rpc/#promise-pipelining) but I'm getting a typescript error Im not sure what to do about. I know RPC endpoints don't return promises so is this safe to ignore (ie is it a result of ts not knowing the difference between an RPC stub and an actual promise)? The error I get is: ``` The initializer of a 'using' declaration must be either an object with a 'Symbol.dispose' method, or be 'null' or 'undefined'.ts(2850)...

Exceeding 3 MiB limit

Anybody else had this issue? My Nextjs site is exceeding 3 MiB limit for Cloudflare Worker. Github https://github.com/SuperJakov/Canvas-Flow-Studio Sometimes it barely gets through the limit, but usually it fails. I want to be ...

has anyone here been able to utlise the email package within python worker to parse raw email saved

i need to process incoming mails using AI in workers but having issues with mime-parser js lib. so thinking aboout using a python worker to parse emails and then use cloudflare ai to assess safety, phishing etc.

🚨 Help: Worker causing JS Challenge loop, (UPDATE: trying a workaround)

Problem: Worker triggers endless JS challenges on product pages, even without query params. Goal: Set tracking cookies for UTM parameters (ttclid, gclid, etc.) Tried:...

404 error after deploying page/worker

I deployed a .html website to a worker page and I am getting a 404: This workouttracker20.pages.dev page can’t be found No webpage was found for the web address: https://workouttracker2.pages.dev/ HTTP ERROR 404...

Access denied when binding R2 Bucket with worker.

Hey all, does anyone know why I'd be getting the following error trying to connect my worker to an R2 bucket: R2 binding error for bucket 'bucket-name-here': Access Denied. I haven't touched CF in a couple weeks. I haven't changed any API keys. I cannot bind any bucket to any worker currently. I'm not sure why?...

Free tier limits after upgrading

Hello, I've upgraded my free plan to a paid plan about an hour ago. I still see errors of "Exceeded allowed rows written in Durable Objects free tier.", and my worker keeps disconnecting. When does the new plan kicks in?

Workers wall clock timeout (524) at 10 seconds

According to the docs workers don't have duration limits (docs) but I'm getting 524s every time wall clock exceeds 100 seconds. Are the docs wrong or am I doing something wrong? EDIT 100 seconds not 10