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

Try adding the `rpc` compatibility flag

Try adding the rpc compatibility flag into your Wrangler.json

Are there example repos of Durable

Are there example repos of Durable Object RPC + vitest integration? I'm running into trouble with it throwing The receiving Durable Object does not support RPC... when running tests attached to it. Repro here: https://github.com/its-jman/workers-types-repro...

'geosteering' with workers

herro all. I have a requirement to geosteer requests to a SIP URI depdending on our cx continent location. I'm not much of a dev... more like a 50 year old infrastructure script kiddie. Do you think it's just a matter of altering: https://developers.cloudflare.com/workers/examples/country-code-redirect/...

Hi, I am using the new RPC service

Hi, I am using the new RPC service bindings and generally the binding seems to work. I can call a remote function and it returns the expected value. However when I checked the logs, it shows "outcome: canceled" for some reason. What is weird is that it seems to return properly nevertheless. Any ideas why it shows "canceled"?

Cron Triggers Pricing

Is there a cost associated to using cron triggers? Is it just a single worker request? Anything specific to the cron trigger itself?

I am sitting here reading about

I am sitting here reading about JavaScript-native RPC in workers... https://blog.cloudflare.com/javascript-native-rpc Do I understand this correctly: ...

is it possible to send transactional

is it possible to send transactional emails in an idempotent fashion from an email worker?

> So i am expecting for the same request

So i am expecting for the same request with in my window of an hr, the 2nd fetch response would be taken from the cache not go to make another http request correct ?
Cache by default is per colo/cf dc, and some Cloudflare Points of Presence even have multiple colos, so you might be routed to a different one/different visitors will certainly be, and get MISS's, plus TTL is just a max and CF may evict it far before then based on access frequency.
if this is the case why for every fetch request i do the worker gets called and returns the response?
The worker will always be invocation/run on every request, even if using cache
How can i validate that this is from the cache or not?...

Langchain Support on Cloudflare Workers

Hi! How can we setup llangchain or something siimilar on cloudflare

Wrong link to triggers in DNS settings to bound worker triggers

I think the part where you assign domain names to a worker has disappeared from the Cloudflare Dashboard, should be at: https://dash.cloudflare.com/XXXX/workers/services/view/WORKERNAME/production/triggers right? But it's gone? Any tips on how to bind (sub)-domains to workers now?

Have a fun one for the Workers team...

Have a fun one for the Workers team... itty-router is staged to release as v5, but we're running into an issue with the direct export signature. Background: An itty Router instance is a Proxy, with a fetch method. This matches the expected { fetch } signature that Cloudflare or Bun expect. However, CF is having issues with the Proxy (Bun is fine with it, for comparison). ...

Workers as your fallback origin · Cloudf...

Sounds like you want CF for SaaS: https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/, https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/start/advanced-settings/worker-as-origin/ You have to specifically setup each Customer Domain though, can do it through the API though. For example, all Shopify Custom Domains use CF For SaaS...

```[wrangler:err] Error: No fetch

[wrangler:err] Error: No fetch handler responded and no upstream to proxy to specified.
[wrangler:err] Error: No fetch handler responded and no upstream to proxy to specified.
😭

Hey I wanted to setup billing

Hey I wanted to setup billing notifications when my workers hit a limit - number of requests or CPU time, but the billable usage notifications only allow me to select the old pricing (unbound/bundled) requests and I use the standard pricing. Is there a way to setup notifications for standard?
No description

GitHub - devondragon/workers-users: Clou...

I'm building something like this for a few personal projects. I am in the process of improving the docs and adding docs around setting up outbound email for forgot password flows, etc... but it works for all the things you mentioned above. Note that the password hashing is using salted SHA-256 instead of something like bcrypt as you don't really want long CPU burns on Workers. If this is a concern you can use bcrypt or an external hashing service or whatever. - https://github.com/devondragon/w...

someone answer?

hey everyone i am wondering that once you create/ set up the website on cloudflare is there a possible way for you to like have a html source and you can out html in that source and it will implement to your website? thanks

but its running on ec2 instace now i

but its running on ec2 instace now i wanna make upload fn to be run on serverless and i have no idea whats wrangler

Cache key

when doing fetch, one of the enterprise features is to cache the fetch by a specific cacheKey, although for non-enterprise customers, what is the cache key instead? the URL ? or the request object as a whole?