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

soketi

Can someone help me understand costs associated with using workers for websockets? I'm specifically using https://soketi.app/ that uses unbounded workers and durable objects in my cloudflare account. Tho, for the life of me I cannot figure out how to calculate pricing around usage 😅 ...

Password Hashing

How about we move to a thread?

Does wrangler3 support breakpoint

Does wrangler3 support breakpoint debugging yet?

Eliminating cold starts with Cloudflare ...

I just read this article https://blog.cloudflare.com/eliminating-cold-starts-with-cloudflare-workers/ Can I get some clarification? If I have a worker that will match on this for example auth.development.example.com instead of only matching on development.example.com/auth* Cloudflare can improve or eliminate the cold start. Is this correct? In my case I am using TRPC inside my worker, so it will handle some routing when it recieves the request. Another question is if I follow the first pattern and match that way, can I still use paths as long as they get handled internally in my worker?...

dave how are you

@dave | ai.moda how are you

I have a question regarding workers

I have a question regarding workers' egress fee

Heya I m getting `Durable Object

Heya, I'm getting Durable Object namespace binding cannot communicate with other nodes. with a durable object. Trying to have a simple websocket DO running. Looking into previous occurences of this error in this discord, I'm seeing mostly related to billing (people beeing on free tier), but I'm on the paid tier

Cyb3r Jak3

@Cyb3r-Jok3 ?

Proxying console logs

Has anyone experimented with proxying the global console to e.g. capture the console logs?

ok this has to be a bug in `workerd`

ok, this has to be a bug in workerd. this works: ```js...

What Auth solution providers are people

What Auth solution providers are people using with workers and how easy/difficult are they to work with? Curious what other are using and what the experience has been like.

Cloudflare subdomain redirecting to main domain

Any idea why my subdomain keeps redirecting to main domain? Opened a cloudflare ticket, been 14 days and no response https://fr.ellasbubbles.ca/ -> Keeps redirecting to https://ellasbubbles.com/ My research makes it seem like its a problem with the SSL certificate...

Websocket issue with Flexible SSL

Hey everybody! I'm new here and could use some guidance. I've been using Cloudflare for a while now, but I haven't delved into setting up Websockets before. My goal is to avoid direct connections to my origin server and keep its IP address protected. Currently, I'm using the Cloudflare Flexible SSL method, where clients connect to Cloudflare on port 443 secured by Cloudflare's SSL certificate. On my origin server, I only have Apache listening on port 80, and I don't have an SSL certificate installed to reduce the SSL overhead. Recently, I created a new WebSocket app and am attempting to set it up to work through Cloudflare. However, I'm facing some difficulties. I've confirmed that Websockets are enabled in the network settings of my Cloudflare panel, and I've also verified that the WebSocket server is running and the listening port is open. I've tried using port 8080, and it's worth noting that the current WebSocket server I'm using doesn't support SSL connections. The issue I'm facing is that when I try to connect to the WebSocket using my domain name, I receive a "connection failed" message. To investigate further, I performed a tcpdump on my origin server but didn't see any incoming requests from Cloudflare. I would greatly appreciate any help or guidance you can provide. I'm eager to learn from your experiences. Thank you!...

If you get a status code of 200 back

If you get a status code of 200 back from our API, it means your message has been queued for delivery. Whether or not it actually gets delivered is something you can only determine by watching your inbox for a non-delivery receipt. We will send an NDR if the message bounces for some reason. Otherwise, you can assume it got delivered. We only queue for up to six hours, so that's the maximum time you will have to wait to get an NDR.

I am super new to JS and webtech in

I am super new to JS, and webtech in general (i'm a security engineer flailing helplessly) and am really struggling with how i could implement auth for pages hosted on cloudflare. From what i can tell, i might be able to use workers, but really struggling to find good examples to crib from. The gist of what i'm doing is: I create a page for each user, it contains mostly similar content, with like 2-3 personalization tokens. Nothing fancy, just text, images, videos and one or two embedded components. It seemed smart to just use static pages, but I can't for the life of me get the idea of using workers and middleware to allow users to auth with a magic link, or something else simple like that. I'm really trying to avoid providing basic auth/shared passwords if i can manage it. ...

Strange Glad you got it working though

Strange! Glad you got it working though

``` const cache key c req url

``` const cache_key = c.req.url let response = await caches.default.match(cache_key) if (response) {...

We use Wrangler 3 and the Sentry CLI to

We use Wrangler 3 and the Sentry CLI to push the dist folder generated by wrangler deploy --outdir=./dist to sentry as a release. Some errors do seem to point to the right file, others don't for some reason, also stuff like deduplication and grouping don't always work like we expect to yet.