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

Thread for the socket issue

and after 40s in the worker the connection is still CLOSING

I'm looking for an example of a

I'm looking for an example of a successfully built workers-sdk / workerd stack --- I'm fixing a bug in workerd myself and would like to compile it end-to-end. Anybody have any examples / resources?

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.

Had a thing up recently where every

Had a thing up recently where every check I did was geolocated to SanFran

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

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