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
JJames5/9/2024

If you turn on Domain Lockdown, then it'

If you turn on Domain Lockdown, then it's not exploitable with your domain. But many of their customers don't have this enabled, and if you sign up with another hosting provider that uses MailChannels, you can still send emails from many of their customers that'll pass security checks, yes.
HIAHello, I’m Alastair!5/8/2024

Had a thing up recently where every

Had a thing up recently where every check I did was geolocated to SanFran
PPato5/1/2024

Hey im getting this error when trying to

Hey im getting this error when trying to use a service binding: ```ts TypeError: Cannot read properties of undefined (reading 'fetch') at handler (index.js:7841:37) at async handle (index.js:2287:29)...
AAdi5/1/2024

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....
Ttony4/30/2024

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",...
IItsWendell4/25/2024

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?
Wwouterds4/22/2024

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
HHebilicious4/17/2024

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 ?
Jjman4/15/2024

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...
Kkian4/14/2024

Try adding the `rpc` compatibility flag

Try adding the rpc compatibility flag into your Wrangler.json
BB33pB00p4/12/2024

'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/...
TTilon4/6/2024

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"?
CChief4/6/2024

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?
Jjohtso4/4/2024

is it possible to send transactional

is it possible to send transactional emails in an idempotent fashion from an email worker?
CChaika3/29/2024

> 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?...
AMAbed Malak3/28/2024

Langchain Support on Cloudflare Workers

Hi! How can we setup llangchain or something siimilar on cloudflare
IItsWendell3/28/2024

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?
KKevin3/26/2024

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). ...
CChaika3/22/2024

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