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

worker url rename

When I create " app worker " - it have automatically url , and is deployed - on url in this format https://{{worker_name}}.{{subdomain}}.workers.dev I don't see Q) where can I change that " subdomain " ?...

Fetching and storing JWKS within a worker

Working on a project building a small application that requires user authentication to interact with various endpoints hosted on CF Worker. Using Auth0 for all user management, and last night was able to get a simple "Hello World" setup that can authenticate a user's token when interacting with the worker Part of the auth process is using a JWKS provided by Auth0 to verify the provided access token. The JWKS is easily available through an Auth0 endpoint, and currently things are wired up to just fetch the JWKS on every request. Obviously, this won't scale beyond even a couple users before Auth0 starts to rate limit the JWKS endpoint - so some sort of caching of the JWKS seems to be necessary. Still very new to CF Workers, but my initial thought was to use either KV or Durable Objects to store the JWKS object, with a wrapper that can handle updating it when necessary. Durable Objects seem to be the right approach here, but I'm curious for others thoughts for this use case (or if I'm just fundamentally misunderstanding the problem and there is an easier solution!)...

Rename a worker

I have a worker created using Wrangler and it is up and running on CloudFlare serving requests. I'm wondering what would it happens if I rename the worker name in the TOML configuration file. will the worker be recreated from scratch traffic shifted transparently to it? Will this renaming have impact on the traffic?

workers.api.error.no_access_to_rollouts (Code: 10208)

I've been receiving this error quite a bit when using the cloudflare dashboard to create workers.

Worker using multiple modules in a single bundle

Hi, I've recently upgraded my wrangler from 3.52.0 to 3.56.0 (no code is changed), and I'm getting an error when I run wrangler dev:
✘ [ERROR] workerd/jsg/_virtual_includes/jsg/workerd/jsg/modules.h:443: warning: NOSENTRY Worker using multiple modules in a single bundle.
I wonder what may be the possible cause? ...

Custom domain worker DNS record

Hi, I created a worker and connected it to a custom domain that I added in cloudflare through dashboard. This created a worker DNS record automatically with the proxy enabled and can't be modified. Is there a way to disable the proxy and will it still work?

Smart Placement "too smart"?

The docs https://developers.cloudflare.com/workers/configuration/smart-placement/#unsupported-back-end-services mention that smart placement is not supported for globally distributed services, and specifically mentions Google APIs. If I'm connecting to a Cloud Firestore database in a specific region via the Cloud Firestore REST API, will smart placement ignore this? The Firestore database is always located in a specific region. Also based on the following:...

Cannot file module '@cloudflare:workers'

Just created a new worker with wrangler and tried to import { WorkerEntrypoint } from '@cloudflare:workers' as shown on the docs site here: https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/#example--build-your-first-service-binding-using-rpc But I get an error from TypeScript that it can't find the module: Cannot find module '@cloudflare:workers' or its corresponding type declarations. typescript (2307) [2, 34] ...

Docker x Wrangler

Accidentaly posted inside general help :NotLikeThis: sorryyy https://discord.com/channels/595317990191398933/1240726123034316942...

Can I specify language output for image-to-text?

Default return is in English, can I specify which language to output in? Didn't see anything in docs. If not, I'll just use the translation AI models but figured I would ask!...

How to test RPC Workers?

Is my approach wrong here? ```ts // test/index.test.ts import { env, createExecutionContext } from "cloudflare:test" import { describe, it, expect } from "vitest"...
No description

Not binding env variables

I have vectorize in wrangler.toml [[vectorize]] binding = "VECTORIZE_INDEX" index_name = "supermem-vector-1" ...

Parsing email

I've tried to use a couple of popular email parsing libraries (textract, mailparser) to parse the raw text received by an email worker, but so far I haven't found anything compatible with the CF runtime environment. For example, I get errors like below during deploy. Missing pacakges incude node:buffer, node:stream, crypto, path, etc. ```...

How to add jsx support for React-email in workers?

I can't run my worker in dev (or remote) since I'm using JSX to render my emails. How would I go about fixing this? I'm using the renderAsync method so it's not a node issue.

Uncaught Error: Dynamic require of "cloudflare:workers" is not supported

service core:user:auth: Uncaught Error: Dynamic require of "cloudflare:workers" is not supported. Does anyone know why my worker is throwing this error while trying to use the new rpc service bindings between 2 workers...

Error on the `wrangler/templates/middleware` directory

What is happening? I'm getting all this errors in the wrangler/templates/middleware and couldn't find any solution in the docs.
No description

Programmatic PDF generation on worker

Hi everyone, I've been looking for some way to generate PDFs within a worker script. Currently I use the browser rendering api to create PDFs of a page but according to the dashboard a single invocation takes 6 seconds... There must be a better and faster way right?...

Promise not working in JS worker

Hi I have am using the S3 client in a Cloudflare worker ```js import {GetObjectCommand, ListObjectsV2Command, ListObjectsV2CommandOutput, S3Client} from "@aws-sdk/client-s3"; // Create client...

node

Hey, I'm trying to deploy my worker but I keep getting this 11 errors all similar to this one:
The package "string_decoder" wasn't found on the file system but is built into node. Add "node_compat = true" to your wrangler.toml file and make sure to prefix the module name with "node:" to enable Node.js compatibility.
...

Site Complaint

İlgili link kişisel verilerimi barındırdığı için profilin silinmesini talep ediyorum. Profil fotoğrafı ve diğer bazı bilgiler benim ile ilgilidir. https://www.testalemi.com/profil/15455 [email protected]...