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

All of my requests are failing when smart placement is turned on with dev server.

Hi, I'm trying out smart placement for worker with dev deployment which serves 0 to minimum traffic. I know that smart placement has analysis process that may take up to 15 minutes, however worker request failing by 100% is something odd if I understood correctly. Is this normal for Dev servers with less traffic? Will it work if I just blindly switch smart placement on for Prod servers? (I'm afraid not) Looking for a help / insight to mitigate this request failures!...

Getting Authentication error [code: 10000] on deploy from wrangler

Hi, since yesterday I am getting a very annoying error. I have a opennextjs worker and I deploy pretty frequently to test, since I don't use the local development and preview. On running yarn wrangler deploy the second step in the script (opennextjs-cloudflare deploy) fails: ```bash Successfully populated cache with 10 assets Creating D1 table if necessary......

Is there a way to view durable objects built in SQL or agent schedule?

I can't see any of the current rows or schedules/crons that are being executed by my agent. Nor can I see the tables for my durable object.

Need help running queue jobs in worker concurrently

Hey there i’ve got a background job that i run for every user, and each job takes at least ~90 seconds wall time. what i want is to run them for all users concurrently, not sequentially. so right now, for testing, i’m adding one queue message per user (say 10 users). i set max_batch_size = 1 and max_concurrency = 50 on the queue. i was expecting cloudflare to spin up multiple consumer workers so jobs don’t block each other....

Cloudflare blocking traffic to my Worker because of non-existent "Rate limiting rules"

I'm seeing some legitimate IPs being blocked by cloudflare and I can't prevent that from happening. Security > Analytics > Events show me many blocked events with this payload or similar: ``` { "action": "block",...
No description

Cannot open index.html with mailto: or discord: redirect. Why?

I apologise for entering all the information in the incorrect section. Here is the problem description. I would really appreciate some advice or enlightenment. Any help would be much appreciated. https://discord.com/channels/595317990191398933/1405232246398517248...

What's the recommended way to interact with cache from Workers?

Hi team, I’m trying to clarify the best practice for handling cache from Workers, and I’ve noticed two different approaches in the docs: 1. Set config & let Cloudflare handle it — for example, using Cache Using Fetch, where you configure and pass the request through with fetch(). 2. Interact directly with the Cache API — for example, using Cache API , where the Worker itself retrieves or stores content explicitly....

MongoDB errors

I wanted to update my worker removing the old deprecated MongoDB Atlas API, and I read that now Workers should support the MongoDB node.js driver, but I can't seam to make it work. Everything is working fine on my local machine, I set the compatibility flags to nodejs_compat and compatibility date to 2025-05-05, but when I publish the worker I keep getting errors like: ```diff...

Debug worker in a turborepo monorepo, Cursor/VSCode

I'm using cloudflare workers in my turborepo monorepo in cursor. Whatever I try with this setup, I can't seem to get the debugger to stop on my breakpoints. Any idea what I can do to be able to debug properly?

Long wall times and short response times

Hey folks, we're seeing a worker with long wall times but very short response times. We're not using context.wailtUntil anywhere, and this is a fairly simple request flow through Hono (which we've now logged the living daylights out of, including in Hono itself). We have a couple of Supabase REST API calls that complete quickly, and we seem to get to the point where we're returning the response within 200-500ms, but we end up with a CPU time of maybe 10-20ms and a wall time of 30s. The worker then gets cancelled, but appears to have correctly returned a response—all very mysterious. Finally, I've tried to hit everything with the dangling promise lint rules in @typescript-eslint and biome, but nothing pops out. With all that said, I'm wondering if anyone knows what might be good to look out for to understand where the wall time is being spent—how do others go about debugging these scenarios?...

Counting Workers requests: difference between charts

On the dashboard, the Workers and Pages page tells me my workers have handled 501K requests this month. But the Billable Usage chart on the Billing page says 4M(!) requests over roughly the same time period. What could explain the difference? 4M can't be right - it's not consistent with database metrics, analytics, etc....
No description

Wrangler deployment error - Custom Instance

I'm getting the error
Error rolling out application project-container due to an internal error (request id: undefined): VALIDATE_INPUT
Error rolling out application project-container due to an internal error (request id: undefined): VALIDATE_INPUT
when attempting to deploy with wrangler. My wrangler.jsonc consists of: ``` "instance_type": { "vcpu": 2,...

Unable to cache static pages in ssg using opennext

``` // SSG configuration - optimized for static coin pages import { defineCloudflareConfig } from "@opennextjs/cloudflare"; import staticAssetsIncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/static-assets-incremental-cache"; ...

How to use websockets on workers?

I'm trying to connect openAI realtime to workers, I use nuxt/nitro. I get this error in the logs: [ws] Error in open handler: SyntaxError: WebSocket Constructor: The protocol header token is invalid....

Documentation on Edge Use in Cloudflare workers with NextJS

I have deployed a nextjs app meant for game server advertising, and I am looking to utilize Cloudflare's edge. Is there any documentation for it? Thanks in advance!...

Browser Rendering: Upstream proxy via BrowserContext proxyServer fails in Workers with net::ERR_PROX

I’m trying to run a browser session in a Worker using Browser Rendering and route its outbound traffic through an upstream HTTP proxy. The same proxy configuration works locally with standard Puppeteer. In the Worker, creating a proxied BrowserContext and authenticating the page consistently fails

error occurred while updating repository submodules

Hi, I'm trying to deploy my nextjs website on Cloudflare Workers, the repository contains a submodule for the API. I don't need that in the worker, but the worker tries to clone it automatically, during that step it throws: ``` 22:59:04.178 Initializing build environment... 22:59:11.842 Success: Finished initializing build environment...
No description

proxying fetch requests

Is there still no way to fetch via a proxy server using workers?

Worflows deploy issue

With wrangler I am not able to deploy workflows. I tried with: 1) My own workflows 2) Cloudflasre default one: npm create cloudflare@latest workflows-starter -- --template "cloudflare/workflows-starter" In cli it is showing:...

ASN 8075 Microsoft Azure botnet cluster detection

Hey all, looking for escalation advice or success stories on getting Microsoft to take down Azure-hosted bot clusters. Context - Seeing coordinated abusive traffic sourced from ASN 8075 (Microsoft Azure). - Looks like short-lived rented VMs running the same automation playbook....