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

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...

Help removing workers anti-abuse rate limit from my account

Hello! I'd like to clarify right away that I'm on a paid Workers plan. Recently, I started experiencing strict anti-abuse rate limits for my Worker. In the Events tab, I see rate limit block events with Rule ID: worker. I'm using the Worker as an API gateway, and many requests come from a single IP address (from my own services running outside the Cloudflare network). This is a normal setup, and there's no abusive traffic involved. I kindly ask you to remove the anti-abuse rate limits from my account, as this is affecting my business. Support ticket: 01667065...

Cloudflare API Internal error when deploying new version

Hi, I'm getting the following error while trying to deploy a new version of my application: ✘ [ERROR] A request to the Cloudflare API (/accounts/66fdcaa33feba9cdeb857bfc810ab75b/workers/scripts/ponzi-land-mainnet/versions) failed. Uncaught Error: internal error; reference = 8tkgsaa6farpisjl22b70o2j [code: 10021]...

Secret variables in `.npmrc` are not loaded, build fails

My .npmrc ``` @awesome.me:registry=https://npm.fontawesome.com/ @fortawesome:registry=https://npm.fontawesome.com/ //npm.fontawesome.com/:_authToken=${FONTAWESOME_AUTH_TOKEN}...
No description

How do I share a worker with another dev on the team?

I don't see a way to grant permissions to collaborate on a Worker. The manage account option doesn't have anything for Workers. How can I add them to this worker?...
No description

Where can I see the Assets uploaded in my workers deployed version?

Hello! I'm trying to find where can I see the Assets uploaded in the current version of my worker. Pages show this in the deployment view. But I could't find the same for workers. And via API I only found an endpoint to upload the assets metadata, not retrive them.

`$WORKERS_CI_BRANCH` empty on rebuild

I'm using the $WORKERS_CI_BRANCH variable in my build script. This works fine, but when a build randomly fails, and I click "retry build", this new run does not set this env var and my scripts fail 😦

Heap profiling with wrangler dev?

I'm trying to optimize our websocket message handler in a Durable Object that receives a lot of messages. I'm interested in figuring out how much garbage it generates over time before and after my optimizations, but am having trouble profiling with workerd. It seems like with the built-in profiler, even if you have the 'memory' checkbox toggled, the heap trace is blank. Anybody know if there's some config I can switch to make this work or if there's some other way to profile heap usage over time?...
No description

Using WASM on Workers to run isolated JS content

I am trying to make use of WASM with QuickJS to dynamically evaluate JS code in an isolated environment, though, I am getting the following error:
Aborted(both async and sync fetching of the wasm failed). Build with -sASSERTIONS for more info.
Aborted(both async and sync fetching of the wasm failed). Build with -sASSERTIONS for more info.
Please find a working minimal code in nodejs that makes use of QuickJS but fails when performed on a cloudflare worker:...

Hi Team,

please help need to recover our cloudflare someone change the password and email for confirmation as well.Thanks guys

errer 1101

ever time i update my stuff in my kv it crash but still updates the kv pls help

workers-build succeding, but reporting a failure

Hey folks, as of late I'm getting a lot of workers-build that succeed on the deploy command, but error after causing the CI run to fail but still deploy. (So on a github PR, the deploy of a preview env happens correctly, but sine the run fails, it reports an error to github so we cannot merge) This forces us to re-run a bunch of builds that we know already pass, but just need to mark things as successful....

trigger build once a day

I have a worker set up (with only static assets) connected with a github repo. How can I trigger the build once a day? Under triggers I see "Triggers cannot be added to a Worker that only has static assets." I would prefer to avoid committing to my repo every day to trigger the build....

What permission is required to add github connection?

When trying to create a new workers application from an account that has role "Workers Platform Admin", I get the permission error when trying to connect to a git repository (see image). From the error message, it seems the account would need at least "Administrator Read Only" role, but that's undesired if the intention is just to give permission to the workers platform....
No description

Support for External CI/CD Providers in Workers Per-Branch Preview Deployments

Is there any plan to add support for external CI/CD providers (such as GitHub Actions) to Workers' new per-branch preview deployments? Due to the disk space limitations, Workers Builds is not an option for me. This might rather fall within the scope of wrangler-action, but I just wanted to kno...

2 Workers in localhost cannot act as Queues Producer/Consumer: Bug or missing feature?

According to https://developers.cloudflare.com/queues/configuration/local-development/#separating-producer--consumer-workers, I can have one worker as producer and another as consumer. The producer is SvelteKit, the consumer is plain Wrangler. However, my consumer must be accessible on its own local URL, because it contains WebSockets and DO (I can't put them in the producer since SvelteKit doesn't support them). According to https://developers.cloudflare.com/workers/development-testing/multi-workers/, I can use "Multiple dev commands" approach. The problem: Queues doesn't work. Sending from producer: await env.Q.send({...}) but the consumer is not triggered. It works when deployed to Cloudflare, but it's far from ideal during development....

Help setting up an Astro app alongside a cron trigger

Hi there! I have an astro app that I am deploying and I want to setup a cron trigger to run a different function. Is there a way to do this without having to setup a separate wrangler config and worker app? I have considered solving this with a monorepo and separate configs for astro and the scheduled function, but I'd prefer to keep it all together if possible....

How to overcome 4 simultaneous connection at the same time in Workers?

Hi guys, I'm trying to run 4+ subrequests at the same time in workers to speed up my work, but it seems like 4 or 5 are the hard limit of CF. Currently I have to batching the Promise batch of 3 items to guarantee that the code would not be crashed. Is there any way to overcome this? Which config do I need to change? Thanks

Workers preview urls

Hi all, I just want to ask to confirm --- when I connect a git repo to be deployed to workers, I see it adds a comment to my PRs, but unlike Pages, this comment doesn't include a preview url (I can construct it manually but I'd like it printed on the PR like the Pages integration does). Is this the intended behavior, or is there a way I can configure it to print a preview url? Also, is it currently possible for worker project preview urls to have their own variables? My wrangler.jsonc has separate env sections with different vars blocks, but the preview branches don't seem to use them (oh, and the logs don't show any of my console.log statements, which is another thing I'm wrestling with. I'm considering going back to pages)....

Cloudflare Worker Issue: 522 Timeout on ALL Outbound Requests

Setup: I'm building a SaaS proxy where customers get custom domains that route to specific paths on my DigitalOcean app. Using Cloudflare Worker as reverse proxy. The Flow: User visits chattest.mori.style Cloudflare Worker looks up path prefix from KV store Worker should fetch from service-frontend-qaarf.ondigitalocean.app/assistant/[uuid]/...