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

No such module "node:events"

I started seeing this error today: ``` āœ˜ [ERROR] Error on remote worker: APIError: A request to the Cloudflare API (/accounts/.../workers/scripts/just-worker/edge-preview) failed. ...

Sample with "otel-cf-workers" "@cloudflare/vitest-pool-workers" & TypeScript?

Somebody has a sample of a working setup? I'm unfortunately running in issues around: ``` No such module "Users/.../nodemodules/.pnpm/@[email protected]@[email protected]/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/os". imported from "Users/.../nodemodules/.pnpm/@[email protected]@[email protected]/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/HostDetectorSync.js"...

worker deploy button not work

I am trying to update the code in one of my Cloudflare Workers, but the deploy/save button is not working. The button is not giving any option to do anything, due to which I haven't been able to update the code for the past 3 days. Please fix this or suggest a solution.
No description

how can I mock one of the env variables in my test

One of the env variables I have is not in the wrangler config and is only loaded in prod, so in the test it's undefined. How do I mock it?

IPv6 -> IPv4

I am hitting the external API with worker which has IP whitelisting So I send them the whole list of Cloudflare IPs the issue it seems like is that their system cannot handle IPv6 ...

are there examples showing how to do authentication in a cloudflare worker ?

Hi Folks I am investigating how to use cloudflare workers as an api getway. I have a go service that is running in cly.io and i want to restrict calls made to this service to all be authenticated. So that plan is to put qorkers in front of that api. here is the flow...

Clarification on limits

Here we can read that workers have a 1MB to 10MB size limit depending on the plan. Where do I see the worker size? Is this the size we see when deploying through wrangler (e.g. Total Upload: 99.90 KiB / gzip: 26.23 KiB)? Is it the gzipped size or the uncompressed one? We also see that workers have a startup time limit of 400ms. Where do I see the worker startup limit? Thanks.

error 1101 - Cannot open any workers at all including "hello world". Anyone? CF Support is quiet..

Hi, account seems fine, I can create workers, etc but they don't work even with default!

Has Anyone Successfully Used the POST Method with Python

No matter how I try to form the fetch() it sends a GET request to the server. from js import fetch, Response async def handle_request(request):...

Cloudflare dev worker reported for potential phishing

Hi, my dev cloudflare worker got reported for potential phishing and I'd like to know how/why this even happened. I thought worker URLs were generated by CF and I haven't implemented anything to steal information.

Cannot link Pages project to GitHub

With the new Settings UI, there are no sections called Builds & deployments as described in the docs, so I cannot hook an existing Pages project to my GitHub repo.

Turso worker

Hey everyone, I'm new here. Sorry for the nooby question, but could anyone explain what is this template worker for? I don't have experience with Turso. After a little research I see it's an edge db, but I'm not sure how it scales (first you create an instance on one server but idk how do you distribute it to multiple afterwards). Does this worker help with this?
No description

Replication lag?

Does KV or R2 for workers have replication lag? It seems like when I have an image uploaded, then requested right away it can't be found. Does it take time for replication between regions?

Observe console logs for cron

Where can I observe console logs? I thought this would be straightforward but I don't see anything at logs/live (real time logs) or cron events tab

How to deploy workers in a monorepo using github actions?

I'm building a monorepo with one frontend and two workers. Using a yaml file, suggested in the cloudflare documentation to run github actions, what should I adjust for the deployment to be successful? My current structure: /packages /frontend...

Clone worker without github auth?

I want to create a worker that others can clone. Is there a way to allow cloning a worker without having to setup GitHub auth and CF API token? Can it be just a clone button in dashboard?

Avoid redaction for URL params in Logpush

Is there a way to prevent Cloudflare Logpush from redacting specific url params? I'm passing Ethereum addresses (public keys) as params and I would like to properly log them... Thanks...

render-browser

Please if anyone can hep i need to build a worker to work as a render service using render-browser

CF-Worker and MongoDB connection and performance is very slow

I'm working with Cloudflare Workers and MongoDB, but I'm noticing that the connection and performance are really slow. Has anyone else experienced this, or know how to optimize the connection and improve the performance? Any tips or advice would be appreciated! šŸ™...