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

How do I integrate my workers with a Self-Hosted Sentry instance?

I'm on the workers paid plan and want to integrate with our self-hosted sentry instance but the connection to auth always goes to the sentry.io domain. How can I configure it using our own self-hosted Sentry (on our domain)? The window that opens does not let me change the auth URL. Your help is highly appreciated....

Access & refresh tokens implementation

Hi, if I'm implementing access and refresh tokens with JWTs for my cloudflare worker API, what is the best place to store the token data? Durable objects, KV, D1?

Enable Unbound billing

I'm getting the error "Worker exceeded CPU time limit" and would like to see if changing my plan to Unbound fixes this. Where in the cloudflare dashboard can I change the settings to unbound? Or do I just need to do this in the wranger.toml?

Worker URL Rewrite not working on Bubble.io

I wrote a Worker that is applied to the Worker Route: *.aholics.com/* Its job is to rewrite: domain.aholics.com → aholics.com/?site=domain ...

parsing Unique Visitors and total requests

Hello. Please tell me how to parse these metrics using the API, we want to post them on our website, I will be grateful for detailed instructions 🙂...

RPC not working in vitest integration

We wrote a cloudflare worker using RPC, but when we tried to test it we got an error. I created this minimal reproduction: https://github.com/MarcoIeni/cf-rpc-test Is it possible to invoke workers RPC from tests?...

Attachments with Mailchannels

Hello everyone, Is it possible to send emails with attachments using the mailchannels plugin? Or has this feature not been implemented?

Wrangler Dev Error

Hello, I'm trying to run wrangler on my workers project and getting the following error stack trace. (base) admin@adminmac Workers % npx wrangler dev ⛅️ wrangler 3.48.0 (update available 3.51.2) -------------------------------------------------------...

Worker path matching and query params conundrum

I'm seeing a lot of issues related to this and no real solution. The problem is very simple and common: I need something like example.com/a as a trigger for my worker, including any query strings or hashes in the url....

how to get the worker duration in a tail worker

would it be possible to have TailItems include the start/end timestamp for the worker? (or did i miss a field?)

How to get body of a POST request

I am using Worker as a webhook URL to pull the data. The request made by the invoked entity is using POST and application/x-www-form-urlencoded. Since it seems to be unable to be logged in the result due to content type, how do I get the data or log them in Worker?...

SSL Error when pointing a subdomain to cloudflare

i have a website and domain hosted on vercel (https://yuval.fyi), and i'm attempting to have a subdomain point to a worker (https://cf.yuval.fyi -> https://cloudflare-routing.xyzx.workers.dev), when i try to connect to it i get an SSL error: Failed to load resource: net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH any ideas or thoughts on what i am missing here?...

Move route from 1 worker to another without downtime?

I have a running Worker with a route which proxies basically the whole domain, now I'm starting to use Environments and want to leave the naming to wrangler etc so it's creating a new Worker with -production appended, also want this to have deploys be more explicit -e production so wouldn't want the top-level to be production config. Though when trying to deploy it's complaining about another Worker already using that route. One alternative that just came to mind is renaming the existing worker instead 🤔...

browser-rendering text() throws "✘ ...ReferenceError: Buffer is not defined..."

Hey all! Trying to use the "browser-rendering" feature to get the text of a page - the docs demo it at https://developers.cloudflare.com/browser-rendering/get-started/reuse-sessions/ - but when I call response.text myself (copy/pasting the code from the docs), I get an error saying Buffer is not defined - deep inside the CF Pupeteer package: ``` ✘ [ERROR] Uncaught (in promise) ReferenceError: Buffer is not defined ...

✘ [ERROR] Error on remote worker: TypeError: fetch failed

While running wrangler dev with the flag --remote I'm getting this error: ``` [wrangler:inf] Ready on http://localhost:8787 Total Upload: 1037.42 KiB / gzip: 193.37 KiB ✘ [ERROR] Error on remote worker: TypeError: fetch failed...

Workers JSRPC Pricing

Hello, after searching through a good deal of the documentation and blogs concerning workers, there's one piece of information that's missing, but I think it's due to its very recent nature. The pricing on workers is really clear and on this point I have no worries. But I'd like to know more about JS RPC. When a worker makes an RPC call to another worker, does this count as several requests or just one? If I were to create a microservice for CORS management, one for token management and other uses, I could easily come up with a request that counts as 3 if that's the case. This can quickly become quite substantial if badly managed, and could make me think entirely about my microservices architecture. ...

Cannot read properties of r2

I am trying to interact with r2 bucket from a worker. But I get this error ``` [wrangler:err] TypeError: Cannot read properties of undefined (reading 'get')...

Do workers support external database poolers or can they only use Hyperdrive

Can a worker use an external pooler, such as Supabase's Supavisor, or must a database connection go through Hyperdriver?

Rate limiting/throttling with a fifo queue

I'd like one of my cloudflare worker routes to fetch a third party api. This third party api has a rate limit of 60 requests per minute. How can I account for this rate limit such that if I receive 100 requests from clients in one minute, the first 60 are processed and the rest are fifo queued until the minute is over, then they will be processed as well?...