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

how to deploy Fastapi APP on Cloudflare

help need to deploy Fastapi APP on Cloudflare

Getting "exceededCPU" error on workers with queues.

I am using workers to with push based queues to process my videos. The videos are barely 20MBs on average, i get them from a usrl and I am uploading it to R2 using stream. Also my worker takes aroudn 10-15K ms on average with 2-3 seconds of CPU time. but I keep getting 'exceededCpu' error randomly and the metrics display those errors as the Exceeded CPU Time Limits errors....
No description

Are the user messages charged in setWebSocketAutoResponse?

I am trying to implement a cheap and predictable-cost ping/pong system in my Durable Object Websocket to allow client check server connection is alive. https://developers.cloudflare.com/durable-objects/platform/pricing/#compute-billing
"3 Application level auto-response messages handled by state.setWebSocketAutoResponse() will not incur additional wall-clock time, and so they will not be charged."...

My site is not deployed on the internet

When I deploy my website it says "Success: Your site was deployed!" but when I click on my "page.dev" link or write my domain name on the internet. Nothing happens and the site is not online. However, when I try to launch the site in local host from my computer, it works perfectly. Help me pls...

nestjs Worker ?

Hello here ! Sorry if the question has been asked before, but I could not find. So I'll ask you gurus about this : Is it realistic to try to deploy a nestjs service as a Cloudflare Worker ? I could see tutos with react or next, but not (yet) using nestjs. Thank you !!...

Bundling with Workers

I have a monorepo using npm workspaces, and I'm trying to set things up so that I can deploy to workers. However, when I run wrangler deploy I get the following: ```X [ERROR] Could not resolve "@node-rs/argon2-wasm32-wasi"...

Worker deploys fine via Wrangler and Web UI but fails via API with SyntaxError

Hi everyone. I'm having a rather odd issue. I'm trying to deploy a worker (I'm using Workers for Platforms but it shouldn't matter) and while it's able to deploy perfectly fine using Wrangler and Web UI, when I deploy via the API, I'm getting a syntax error. Uncaught SyntaxError: Unexpected token 'export' It seems the API will not accept ES module syntax for some reason?...

Workers D1 sometimes timing out or internal error on a cron job

Every so often my worker fails to process a cron job that happens every 60 seconds, and the only point where it fails is when doing stuff with D1, with logs enabled over the last few days/weeks i noticed that the errors it usually gives is D1 internal errors and some others its a timeout, most commonly in a batch that is usually 2-4 instructions long I know this isnt really an error on my end as its an internal error and a timeout, but just wanted to know if theres something i can do better or if by reporting the issues can becomes less frequent Internal error references: p30i3je9aqjrtreoodjf91at, jnb332nd1cevne6jnhh0t5qd...

cannot access cached pages created by worker

Hi. Beginner programmer here, using lots of help from AI. On free cloudflare plan. I am trying to fetch some data, do some math on it and create a page with the data. I expect the data to be cached for a full day instead of fetching and creating a new page on each request. I succesfully created an HTTP endpoint which can read the previously stored data (in KV), create the webpage and cache it. I can then access the page from my browser. This is all good....

How is there no better way to deploy email workers

I've just tried getting started with email workers, and it's almost impossible to do anything advanced with it (As far as I can see). I couldn't find any way to deploy email workers outside of the dashboard, there's no bindings from them or anything and from the dashboard editor it's almost impossible to do anything useful via the dashboard. I had to find a workaround by first connecting my worker to a github repo, then pushing to that repo overwriting the existing worker code. It's impossible to add the trigger event "email" as is. I would love for this to get expanded upon as it could open up so many possibilities...

Is the `IMAGE` binding not supported by miniflare?

When trying to use the IMAGE binding in my SvelteKit app, I get an error and it crashes Vite instantly. I even converted my entire Pages/Workers app to Workers/Assets

Workers Vite in browser not trying to reach worker

I'm trying to rebuild my setup to deploy my React SPA together with my api in one worker. For this im using the cloudflare worker vite plugin with ```json
"assets": { "not_found_handling": "single-page-application"...

Worker build internal error

I'm trying to move from pages to worker, create a new worker > connect to git repo > build error with only these logs
17:25:27.445 An internal error occurred. Please retry your build. If this problem persists, contact Cloudflare support.
17:25:27.445 An internal error occurred. Please retry your build. If this problem persists, contact Cloudflare support.
17:25:27.445 An internal error occurred. Please retry your build. If this problem persists, contact Cloudflare support.
17:25:27.445 An internal error occurred. Please retry your build. If this problem persists, contact Cloudflare support.
...

CloudFlare Workers cannot access websites what is deployed on CloudFlare

I deployed a cloudflare worker and tried to access the resources on my friend's page on cloudflare, but it sometimes didn't work. this might be a bug.... plz pix it or smth...

"Handler does not export a scheduled() function" - No matter how it's exported

Howdy, I'm struggling to use the CRON events for my worker; no matter how I export my scheduled fnc, the worker insists it does not exist. As I understand it, the export must be named exactly scheduled, so in my index.ts I have the following: ```ts...

Seeing data loss when serving ReadableStream from worker

I have a generator which returns fixed-size chunks (tested, eg., 16kB and 32kB chunks), and I take those chunks and pass them out via controller.enqueue() calls. Some of those chunks then vanish before reaching the other end of the connection. No errors in the connection itself. It looks like the controller object just misplaces them. Am I doing this right?...

Worker failing to invoke Workflow with no useful debug information

I have a really bizarre issue that I have tried my best to solve on my own, but ultimately I think I need someone with Cloudflare to help. I have a worker that's bound to a workflow that's been working fine for over a week. Out of nowhere seemingly it's stopped working. Specifically when the worker goes to call the workflow it fails with a super non-helpful "500 Error: internal error". I've tried deleting the worker and redeploying it. Nothing. I've tried changing the workflow name and redoing the binding. Nothing. I think the issue could maybe be the binding somehow, but if I completely remove the binding from the TOML then I get a different type of error that is saying create is not defined, which seems expected. I've tried invoking the workflow through the UI and it works fine. It just seems to be a binding issue....

CF Rest API call works with wrangler, Unable to authenticate in worker?

Same function on the Cloudflare TypeScript SDK, same parameters, but deployed worker call fails with: {"code":10001,"message":"Unable to authenticate request"}]

Worker Logs is now included in your plan. Review and accept changes to your plan.

When I try to accept it in the modal I get this: workers_observability.api.error.internal_server...

Avoid hardcoded IDs in the repository

Hi everyone, I'm testing the worker and I have a question: Is there a way to avoid hardcoding the ID of a D1 in the wrangler.jsonc file to prevent it from being available in a repository, like GitHub?...