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

`EMFILE: too many open files` during build

Anyone happen to know anything about the EMFILE: too many open files error with workers builds? I see a bunch of people posting about it in the past, but none of them have any replies. Basically, I'm trying out workers builds for a full-stack site built with SvelteKit, hoping to eventually move my Pages projects to workers since Pages is basically abandoned at this point, but I'm getting this error. I've retried many times and have gotten that error every time. Build works fine locally. Any help with this would be greatly appreciated....

Api call 1003 error

Hey there! on a worker that we have, we are making an API call to a domain. Most of the times it works fine, the api responds correctly, but a portion of our requests, lets say 1 out of 10, we get an error which says 1003. From what i understand, cloudflare returns this error for direct IP address call, which is not allowed, but this is not the case. Has it happened to anyone else, or do you have any output on this?...

BUG: Percent Encoding decoding for workers URL breaks major features

What is the error message? API Request Failed: POST /api/v4/accounts/XXX/pages/connections/gitlab/EmergenceLTD/repos/Clients%2FAI_Now%2FHermes/webhooks/refresh (500) What is the issue or error you’re encountering ...

Deployment Pipeline for Workers

Morning all, I'm wanting to know how you manage the deployment process of workers? For example, we have a staging and production enviroments, and need to keep them both running at all times. We're using Github and wanted to know how you do it?...

Worker with Queues processing

Hello everyone I have a doubt related to the Cloudflare queues, so currently we host a platform where we automate multiple applications by receiving Webhooks on our platform. Our domain is hosted via Cloudflare. Recently we have been facing downtime due to server maintenance. So I had thought of a approach that before going into downtime, we will enable a worker that would have a queue connected to it and in the worker we would have setup our route e.g. https://{{domian_name}}/* as soon as we enable this our system of the worker is up and captures webhooks and stores them into a queue. The issue that I am facing is while processing the queues for around 300 webhooks the API is taking about 75 seconds to process those webhooks and send them to the respective destination. I have tried them in sync with but still the time is approximately same. ...

AUTORAG error: fail_while_querying_for_index

Hi. Wonder if anyone has had experience with this error: fail_while_querying_for_index (Workers AI - Autorag)? I set up my autorag, binded to a worker, and synced an index of the latest uploaded docs from my R2 source. ...

TCP connect API and port 443

I am considering using Workers as a scalable proxy for https://webvm.io, to replace or augment our current Tailscale backend. As I was experimenting with this idea I quickly hit a critical limitation of unclear purpose: connection is not allowed to port 80 and 443. Port 25 as well, but that is not a problem and completely acceptable. Now, the recommended solution is to "simply" use fetch, but this cannot work in our scenario, especially in the case of 443 / HTTPS....

Deleted Secrets in Secrets Store cannot be removed from Worker

I deleted all of the secrets from secrets store without removing the bindings from my workers first, and now my worker is in a broken state. I cannot remove the secret bindings, and I cannot upload a new version of the worker. So I don't think there is anything I can do other than delete the worker itself. Is there any way around this?...

[ERROR] Your Worker failed validation because it exceeded startup limits.

Hi there, I am new to be in this trouble: ```[ERROR] Your Worker failed validation because it exceeded startup limits. To ensure fast responses, there are constraints on Worker startup, such as how much CPU it can use, or how long it can take. Your Worker has hit one of these startup limits. Try reducing the...

package.json version doesn't work

I specify "@prisma/client": "6.6.0" (NOT "^6.6.0") in package.json but Cloudflare Workers installed "@prisma/client": "6.10.1". I found a message on build: npm warn exec The following package was not found and will be installed: prisma@6.10.1 Is this expected behavior? Why Cloudflare Workers ignores (or isn't able to find) specified package version?...

Getting unreachable host on worker

Hi, I deployed a worker to deliver Backblaze B2 content according to https://www.backblaze.com/docs/cloud-storage-deliver-private-backblaze-b2-content-through-cloudflare-cdn, but I'm getting unreachable host when trying to access the files. The worker was fine about a month ago, now not even pings reach it. Running the worker locally works without issues too, so the worker's script isn't the problem either....

Not able to create new worker

I am trying to create a new worker application from the CF Dashboard by using the git repository. But after clicking "Create and deploy" button nothing is happening....
No description

Programatically Querying Workers Logs

Is it possible to use the API to query all workers logs (e.g. past 24 hours)? I'm looking into dumping all of my logs into a daily report so I was thinking of doing a 24hr cron worker and dumping all logs at once into a d1 sqlite...

How do I provision an image in a React component using react-router and SSR?

I have built a react-router "framework mode" application to test some Cloudflare bindings. The KV binding works great and I was able to pull a text file from R2 in loader() and process it fine. I am not able to come up with the secret sauce to work with an image file however. I have this working fine in a React SPA, the Cloudflare fetch() just processes the file in client mode. But on the server side, there is no URL.createObjectURL(). After many permutations I am left with the code, below. I pasted in the Typescript errors as I think they are part of the problem. Am I missing something simple?? `import type { Route } from "./+types/r2_image";...

Calling RPC method within the original worker?

I've been doing alot of work with RPC in workers and it is great. All the docs show examples of setting up the RPC in the 1st Workers and then using a Service Binding in a 2nd worker to call the RPC method from the 1st worker. This works great. But, how can you call the RPC method in the 1st Worker itself? There are times, when we want to use the RPC method in the worker itself that create the RPC method, but there doesn't seem to be a way to do this? thanks for any help. #workers-and-pages-discussions ...

I need an api solution that allows only 1 request at a time.

I need an api solution that allows only 1 request at a time. I am using cloudflare workers + hono + d1

Wrangler configuration for monorepo

Hi! I have a monorepo with the following structure: ```yaml root/: apps/: app/: # static web app (1)...

How to enable DDOS protection for Workers

Hey, I'm working on a Cloudflare worker in TypeScript Can I know how to enable DDOS protection in it, or is it by default enabled How can I confirm (Just trying to be on the safe side đź« )...

React-Router v7 - Caching does not work

I have a personal website running using react-router v7 in framework mode, deployed via Cloudflare Workers. Typically, I receive 100-500 requests per day. However, in the last few days, I got over 12.5k requests from just two different IP sources within roughly 3 hours. According to the Security > Analytics dashboard, 99% of the requests should be mitigated or cached by Cloudflare. Yet, when I checked the Workers dashboard, nearly all requests were billed. ...
No description