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

Static asset file limits

Hi there! I opened a thread in #pages-help earlier this year about file count limits: https://discord.com/channels/595317990191398933/1361914707430080513 We're moving away from Pages to a Worker, and workers docs state the existing rate limits (20k files max) are still in place for Static Assets. I'm just checking in to see if that is still a hard limit, or if the limit can be increased on request? ...

Network Connection Lost on Fetch but Fetch not Attempted

Hello, I'm trying to send large content from workers and I'm getting a network connection lost error when attempting to send anything above roughly 100Mb. I don't appear to be getting any requests on the receiving end, so I am thinking my worker isn't even attempting to send the request at all. Is there some limit I'm hitting on outbound request size from a worker? ...

does CF workers include any kind of sortable Request ID like ULID/UUIDv7 into the request context?

Hi, I'm trying to improve logging in in R2 by generating an Request ID. Does Workers has any kind of Request ID included in the request context so I can save a few ms of generating an UUIDv7. This is really crucial to our system, since we are saving auditing data into R2 data catalog.

Next JS Git Deployment Help - Out of memory

I'm deploying a NextJS app via the git integration,which deploys fine from my local device, but when setting up the integration I get the following error when deploying. ``` 13:19:29.273 Populating Workers static assets... 13:19:30.175 opennextjs-cloudflare deploy...

help me

Hello, everyone. I have a question. I registered a website on Cloudflare, but I can't access it. What's going on?

Invalid Account ID" Error (ERROR 9426)

I am experiencing a persistent "Invalid Account ID" error (ERROR 9426) when attempting to deliver images via Cloudflare Images using a Worker on my domain, mrlipx.com. I have been troubleshooting this extensively without success, and it appears the issue lies outside of the Worker's code logic. My Cloudflare Images Account Hash is: HUDbG83RTduFMklKurMDw The exact error message I receive is:...

Worker dying after 30s even after changing limits to 5min

I'm on the paid plan, however I noticed a worker I have dies around 30000ms, even though i said my wrangler config with the 5 min limit as defined here https://developers.cloudflare.com/workers/platform/limits/#cpu-time

How to paste into the web code editor?

Attempting to paste into the web code editor just shows the "No code actions available" message. Is pasting just not allowed for the web editor? Why is that?

Smart Placement

I have three Workers apps (2 SSR/fullstack; 1 SPA) which connect to a Worker "service" that makes the API requests to the external services they need. The service is a WorkerEntrypoint and the app Workers connect to it via Service Bindings and make RPC calls to it and it calls the API endpoints. The users are mostly in South/East Africa but the origin servers are in Germany/Ireland. The reason I did the architecture this way was thinking that by enabling Smart Placement on the service it'd be moved close to the origins while the apps ran on the Workers near the users in Africa (or the US while we're developing it). However, the dashboard says "Your Worker has not received enough requests to make a placement decision". Production (with no real users) has gotten 455k requests in the last month. Dev (with US traffic from us developers) has 680k+ in the last moth. What's "enough"? ...

Worker build Error

I need help with a GitHub and Cloudflare issue, here's the overview, what should I do? Summary of Cloudflare Workers Pages Deployment Issue Problem Description...

vite build fails with ✘ [ERROR] A request to the Cloudflare API (/accounts/b50cxxxxx)

I have a monorepo powered by turborepo. it has a web app by tanstack-start(vite), a hono server app and some few packages. the boilerplate was generated by better-t-stack. I'm able to successfully deploy the web app but when deploying the backend server, it fails. It doesn't matter whether i use vite and raw wrangler as build step. Console logs generated when deploying the server can be found at https://gist.github.com/waptik/7560b4350ab30698981a5dc867e81514 first script is when i run pnpm run deploy script in the root folder and the second is i ran it inside apps/server...

Hot reloading with Sveltekit and npx wrangler dev - is it possible?

Hi team, I'm using Svelte5 - and would love to use npx wrangler dev to develop quickly. Did some research and apparently it does support Hot Reloading, however, I've never managed to get it working. Does anyone have any insights or know if this is possible or not?

Fetching CDN URLS from Worker shows 404

``js export default { async fetch(request) { // Fetches Correctly const workingUrl = https://${domain}/${filePath}`;...

This ReadableStream did not return bytes.

I'm doing something like this with nuxt/nitro: ```js export default defineEventHandler(async (event) => { ...

How to determine if a worker request is from a service binding vs external HTTP?

If I have a worker that I want to behave differently when invoked via service binding instead of outside http, how can I tell with certainty which method invoked it? The use case here is to bypass auth and bot filtering measures on service binding calls that we know came from our network....

[BUG] Cannot create binding for class in script '[script-name]' that does not exist.

I believe I have found a bug regarding defining durablje objects bindings from specific environments. ```json "durable_objects": { "bindings": [ {...

Random Authentication error [code: 10000] when listing workflows or deploying with wrangler.

Hi 👋 I recently added a workflow to my vite (react-router 7) worker app. Since then I have been having problem deploying the app with wrangler deploy. Since yesterday, I regurlary get the following error:...

Cloudflare Worker KV: get() with an array of keys returns empty, but Promise.all works.

Hello everyone, I'm encountering an issue with the Cloudflare Worker KV where I get an empty array when trying to retrieve multiple keys at once. When I run the following code, it returns an empty array:...

Http streaming is not working if the worker is under custom domain.

I notice that when I access the workers.dev page directly I see http streaming just fine. but when I assign the page with a custom domain I own via cloudflare, The page works, but it will show a response only after the entire response has been loaded. Did anyone experience this issue? I can supply examples offcourse for both the workers.dev and the domain page if anyone wants to take a look...

Workers build slow due to python

Since recently moving from Pages, to Workers, I've noticed builds going from mere seconds Tk minutes, build system changed, the project didn't Looking at the logs it's consistently stopped by installation of python But I'm using typescript...