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

smart placement + RPC

I got seen zoned on general discussions with this question, figured I'd ask here 😅 . Would love some clarification.
Quick question about the smart placement limitation on RPC service bindings. Is that temporary? Or is it a limitation that is expected to be around for a while? Not looking for a timeline, just some confirmation the vision for RPC....

Worker waitUntil question

I have a worker that I want to call an external api on, but I want to return a response without awaiting the the external api call. (the external api call is to just save time writing to the db on another service). ```javascript const promise = fetch('http://localhost:3000/impression', { method: "POST",...

Interface return type in RPC functions for Service / WorkerEntrypoint

I'm trying to implement a RPC Service in my auth service worker that verifies a jwt token, but whenever import an interface type from another file, it infers the return type of the RPC to never. But when I turn that interface into a type instead of interface, it does work, why is that?

So I have searched already quite a bit

So I have searched already quite a bit but I'm not sure where or how I unsubscribe from these daily notifications that I reached 50% of my free tier capacity 😅... I know I'm above 50% and it is fine, it resets daily. But every single day I get 2 - 3 emails from Cloudflare: [Cloudflare]: 50% of daily usage limit for Cloudflare Workers KV operations reached. Simply put, I'd like to unsubscribe or manage treshold for these notifications and I don't know where or how to do it....
No description

Hello is anyone else getting 202 status

Hello is anyone else getting 202 status code from the mailchannels API, with the email never actually being sent ?

Ok, new problems. When running tests

Ok, new problems. When running tests against a durable object I'm getting Failed to pop isolated storage stack frame in... I was able to resolve it without RPC by following the error found in this thread: https://discord.com/channels/595317990191398933/1218150105777963101/1227337525484326933 But it seems like it's causing issues regardless in RPC...

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