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
SsSr3/26/2024

anyone know of an alternative to

anyone know of an alternative to nodemailer that can be used to send emails using cloudflare worker?
AAdi2/10/2024

Hey all, I've had an issue bugging me

Hey all, I've had an issue bugging me for a while, and I can't figure out how to fix it. Looking for help 🙏 I've been developing oss libraries to use with the cloudflare ecosystem, and I've always run into issues with KV typing. Let me give an example. Here is a library that provides a kv adapter for epic-web/cachified - https://www.npmjs.com/package/cachified-adapter-cloudflare-kv Here is my super simplified example setup with it ```ts...
SXSteve Xuereb12/28/2023

Cloudflare Worker TypeError: One-time-us...

Hello, I'm trying to build a reverse proxy where I'll use the cloudflare domain to proxy from a site. Now the application sends 302 when the user is signed out, and then I get to send a post request with the login information. The code below works, in the sense that it follows the redirects, but when I submit the form I get the following error: ```...
Nnawarian11/26/2023

`WebSocketServer` is not a constructor

Hello all đź‘‹ I've built a simple Next.js app and got it deployed with CF Pages. I'm now integrating it with D1 databases and would like to run some tests on CI. I can't instantiate miniflare, though. It keeps complaining with the following:...
CCyb3r-Jak39/21/2023

I get the error just when starting dev

I get the error just when starting dev mode no requests made. Let me start a thread with the code peices
Rrob9/5/2023

Hono Static Assets

they are in /assets/static and in wrangkler its [site] bucket = "./assets"...
Bbryan3/6/2023

has anyone used webpack as a custom

has anyone used webpack as a custom builder on wrangler2? i need to for specific WASM compat issues with esbuild...and after switching i can't seem to get past "No fetch handler defined"
EEezergoode2/20/2023

Hi everyone I m having trouble sending

Hi everyone, I'm having trouble sending some analytics events to my server hosted in Azure. I keep getting 522 timed out or 521 responses. I've verified that the server is externally accessible and have been able to hit the endpoint from several other locations but it fails every time only in my Cloudflare Workers. I have added a firewall rule to allow all CF IP addresses as well. I'm at a loss of how to proceed now. Would love some ideas! Note: It's on http://myserver:8000 address. Could the port or lack of https cause connectivity issues w/ CF? I know we can't fetch IP addresses directly w/ CF Workers but curious if there are other limitations that could be causing these issues...
TTricked2/20/2023

is there a api client or something to

is there a api client or something to update dns records from within workers?
RRetard2/14/2023

This error just started popping up on

This error just started popping up on what used to be a working script, did anything change?
WWalshy1/11/2023

Can you run with WRANGLER LOG debug and

Can you run with WRANGLER_LOG=debug and DM me the output?
CAColin Asquith12/5/2022

Worker to update HTML element if it exists or create if it does not

I asked something in #workers-discussions but I think it belongs better here... Is it possible to write a worker that updates an HTML tag e.g. <title> if it's in the page, or inserts it if not? I can do one or the other, but I can't get it working when I need to try both. Have issues with ordering and closures. Maybe I can do some regex first? Any pointers appreciated!
Zzegevlier10/24/2022

Ah in that case you have multiple things

Ah, in that case you have multiple things you need to await (cause you need to fetch the data and then store it in cache). You could put it all in an async function like so: ```ts const foo = async () => { // do something }...
GGamengineer31410/14/2022

Behavior of secrets / environment variables with newlines (escaped / unescaped characters)

Now that's weird. When I put my key in a variable in the code (let key = "..."), it works perfectly but if I put the same key (I copy pasted it) in a secret, the importPKCS8() function results in an error : atob() called with invalid base64-encoded data. (Only whitespace, '+', '/', alphanumeric ASCII, and up to two terminal '=' signs when the input data length is divisible by 4 are allowed.) So it works but I would prefer to have the value in a secret since it's the key to my Google Cloud Service Account so it's not great for security to literally have it in my code......
AArbee10/1/2022

Bad DNS cache

How do I do that?
HIAHello, I’m Alastair!8/24/2022

Try this

Try this:
SSchrödinger8/3/2022

Hi I m not familiar with yaml all that

Hi I'm not familiar with yaml all that much. Can someone show me an example of having the url and json details for multiple files in the same config file? Thank you so much