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

Worker not accepting POST connections from outside Cloudflare.

The title is pretty self explanatory, after trying to call a URL with the POST method, it shows like the request went through but they did not go through as the value on the temp page that should change from false to true stays the same. If you need full code to test (not screenshots) send me a DM and I'll hook you up with the code.
No description

script help

When I message my site email I want it to respond automatically, but it does not work, anybody know how to fix? This line is the one that is not fully shown text: "Hi, \n\nThank you for your email. This is an auto-reply. We will get back to you as soon as possible.\n\nBest regards,\nThe Multiple Uses Team"...
No description

Deployment Issue. (Failed to publish your function)

I faced this error while trying to deploy my app though it runs fine locally and the worker compiled successfully. The function in the error message is also not part of the assets.
No description

Dynamic require of "node:buffer" is not supported

Hey All! Trying to follow along with the dev doc guide on browser rendering within workers. However I am getting an error when attempting to dev test or deploy. ```...

How to handle API rate limits accross Workers on the edge?

Hey everyone. We have a tricky case, but I am sure there are also people out there that have figured their own solutions to this. We build a flow builder that runs on cloudflare workes. The flows are really time critical and get triggered from clients frontendside around the word. Within the flows a customer can make api calls to a variety of API endpoints. Each endpoint has their own rate limit. Some have very strict limits that for example only allow 5 API calls per second, and when you overhit the api, you get a 30 second timeout. We also have some API's that when you overhit a lot of times, they kill your access to the API for days. So we need to handle he rate limit globally across all workers destinations. The only solution I can imagine at the moment is use DO/D1 or an other DB to check the current rate limit status, make the call, update the status....

Stop worker from running after X amount of requests to it.

Hi there, I was wondering if there was a way I could stop requests going to a worker if that worker has reached x amount of requests. Example: If my limit is 100,000, how could I stop it at 50,000? Thanks for any help in advance....

`wrangler dev` doesn't restart the server even after re-running the build command...

Has anyone experienced this issue? My wrangler.toml looks like this: ```toml #:schema node_modules/wrangler/config-schema.json name = "phosphor-server"...

_acme-challenge TXT record not being accepted by Cloudflare

See original message: https://discord.com/channels/595317990191398933/1012440514135593083/1263491189903200338 We're struggling to get a client domain up and running on our SaaS platform because an acme-challenge txt record is not being read by cloudflare. Any advice or direction would be appreciated....

do-taskmanager with rpc

Hello, any experts able to guide me in the right direction on modifying https://github.com/evanderkoogh/do-taskmanager to work with the new RPC? The new DurableObject class doesn't seem to like me calling super() with the proxied state but I could also be making a silly mistake To be clear all I'm doing is: ...

is there any good monorepo generator for cloudflare workers, for managing 100+ simple functions

Should support vitest. Bonus if we can leverage the worker.py for langchain too....

Worker on existing website

I have an existing website at www.example.com hosted outside cloudflare and I need a worker to respond to 2 endpoints at www.example.com/foo and /bar Is that possible and where might I find docs specific to it?...

what is meaning of Simultaneous outgoing connections

does this mean if I have an expensive workload that takes 1 second, and now there are 6 users using this route, my worker will not accept any requests?

Error 1102 Worker exceed resource limit

Hello everyone, I am encountering a worker resources limit issue, even though I upgraded to the paid plan. What could be the reason?
No description

Restrict random and un-whitelisted domains with worker

We wanted access our content (WSS/websdk) by only whitelisted domain from cloudflare only, for others message "Limited access please contact admin"

Can I add script Verify Human to Cloudflare worker page (without custom domain)?

Is it possible to force appears this script in Clodflare worker page?
No description

Doubt about the Service Binding subrequests billing

Although the ecosystem is growing and I'm really glad about all the additions, I'm having a hard time decrypting the docs across all the services. I'm confused about the billing of subrequests made in a Service Binding context. I'm wondering if they still count as against the subrequest of the original request, If I have an API on Worker A and make a request through RPC to Worker B will this count as 2 worker requests or just one? From here I understand that it will increase the counter to 2 https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/#limits But from here https://developers.cloudflare.com/workers/platform/pricing/#workers I see that subrequests are not billed inbound....

What mail client I can use with cloudflare worker for sending mail to one email address?

Mailing usually a horrible function because anybody want to restrict mailing and invent new and new restriction. And we have millions various clients for mailing with money. However I want to create mail notification to one email (I'm ready to verify that this is my email). I don't need domain xxxxxxx.pages.dev is enough to my notification functions. What simplest mailing I can use in Cloudflare worker in this case (no domain, one mail destination address)? Is there embedded Cloudflare functio...

Redirect/Route a Worker (specific URL) to Pages

Say I have a Worker A that handles requests on a website a.com and some Pages B (b.pages.dev - using say Astro). How do I add a 'service binding'-like such that a.com/blah is actually serving b.pages.dev (and prevent public access to b.pages.dev using Access)? Note Pages B isn't a static deployment but more like SSR (a la Astro not Hugo) - so I don't have a collection of files in KV to use Worker A on. ...

What simplest way to pass reference to supabase into Worker script

I asked this question (with good formatting) there https://www.sitepoint.com/community/t/how-to-pass-reference-to-supabase-instead-object-in-cloudflare-worker/451831# What I doing wrong? How can I inject reference to Supabase into my script?...

OpenAI nodeJS library stopped working since last deploy about an hour ago

Our website relies heavily on OpenAI's Node.js library, since an hour ago, it seems there is a new constraint: (error) Error: Dynamic require of "node:util" is not supported. Is the only choice to rewrite everything using fetch();? ...