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 ai extremely slow >15 sec any model on local wrangler dev

anything I have to do locally for running in wrangler to get that response time down?
No description

How to develop with custom packages in typescript

Im using nitrojs to make my cloudflare worker and recently came across cloudflare:sockets, this is a massive game changer for me as i can connect to my database without a intermediary api. Im wondering what the right way to use this package is since i wont have types for it in typescript and nitro doesnt support cloudflare tcp sockets yet

service binding error.. why?

any ideas why i get this Error:
errorTypeError: The RPC receiver does not implement the method "textLableMatch".
errorTypeError: The RPC receiver does not implement the method "textLableMatch".
worker A "consumer":``` export default { ...

Did workers get slower?

I've had a worker running for years just to test the speed of Cloudflare services. Today, I tested the new KV speed improvements, and they showed significant progress—down to 3-5ms from around 25ms+ after a cold start. However, the worker seems to have slowed down overall. I haven't changed the code in years and have tested it multiple times. While 135ms for a simple response (waiting for the server) isn't too bad, it feels slower than before. I recall response times being around 50-60ms previou...

Bug with Workers Build env variables

After changing Build command or Deploy command in Build configuration, new builds cant access Variables and secret. The fix for this is just to recreate all secrets after changing build configuration.

Error 1101 Worker threw exception even With the default pre-written "hello world" !!!

I think the title says it all but all of a sudden after few years of usage, suddenly both my worker and pages stopped working even with the default code at the creation ! I don't know whether I'm banned or not, but I'm in the free tier and everything else works ! A sample worker address : https://sub.dlb4all.workers.dev/...

Breaking Changes in Worker Name Resolution

I have workers with names that start with a UUID-like segment (e.g., abcd1234-worker). These workers were functioning as expected until this morning. Now, when I attempt to open the worker URL (e.g., abcd1234-worker.[accountname].workers.dev), Cloudflare responds with “There is nothing here yet.” I suspect Cloudflare is attempting to resolve this as a deployment version (abcd1234) of a worker named worker, rather than resolving the full worker name (abcd1234-worker). If the first segment doesn’t match the UUID-like pattern (8 characters, a-z0-9), then the worker url resolves correctly. if I access the deployment URL directly, it works fine. Everything was working yesterday, but as of today, none of my workers with this naming pattern are resolving correctly....

Source map in worker does’t work

I made a hono backend and log the error and stack somewhere in the code. set upload_source_maps = true in the wrangler.toml and run wrangler deploy call the API to trigger the error and stack log You will see the stack trace doesn’t have original file location, but instead it has the bundled js file code location. ...

Difference between Static Assets and Pages?

Hi. I just noticed a Static Assets option in Cloudflare Docs, and I fail to see practical difference between the two. There is a page https://developers.cloudflare.com/workers/static-assets/compatibility-matrix/ that shows the difference in avaliable features, but it still doesn't explain how are two products different specifically. Like for example, if I have a Nuxt3 SSR app with bindings for R2, can't I just use both? Pages also support SSR via Pages Functions. So what's the difference here?...

Few bugs with Worker Builds

- Failed builds cannot be deleted, so the "Your last build failed." warning forever stays pinned at the top of the Deployments page, even if you disconnect your git altogether... Very annoying - Since builds are still visible after disconnecting the git, opening one just triggers perpetual No build associated with that uuid was found for this account errors - The API token dropdown in the Build settings shows tokens that have been deleted: if you create a CI token and delete it, it will still show in the dropdown...

any way to use the binding with hono without passing the service url?

I am using several workers and I would like to use one as a gateway and communicate with all of them through service bindings, but is there a way to use the service binding without passing the full URL of the other service? I attach the example ```js const app = new Hono<{ Bindings: { USERS_WORKER: Fetcher } }>(); app.get("/", async (c) => {...

How can I check the rate limits for a worker (Security audit test)

Last year, during our annual security audit, the workers for our staging environment blocked the auditors. We reached support, and they mentioned that they had removed the block. We are about to start this year's security audit, and I'm trying to check if the limits were completely removed or if I should reach support again....

error: "[unenv] zlib is not implemented yet!" even with compat flag on

Hi folks, My worker has these compat flags nodejs_compat_v2 and nodejs_zlib. I'm using a library (qrcode) that depends on zlib. It works in my preview branch, but in production, I get this error: ``` [unenv] zlib is not implemented yet!...
No description

Cannot find close to nothing: console, fetch, Response, HTMLRewriter etc…

As the screenshot shows, I cannot use my program because it cannot find these interfaces. It also appeared seemingly out of nowhere. Has anyone faced this problem and knows a solution? Thanks.
No description

OCR a PDF with Worker

Does anyone know a way to OCR a PDF with Worker? Thanks...

In CI, setting a newer wrangler target causes `npm i [email protected]` which causes error

Please see the two attached screenshots. I presume this is because I manage packages via pnpm and the action naively assumed preference for NPM?...
No description

Smart placement issue

I activated smart placement in my wrangler.toml and I have a weird behaviour: every now and then for subsequent deployment, sometimes, the cf-placement header is missing. I have some customer in NZ and D1 instance in west-europe so they instantly notice when it's off as my app gets slow for them. What could cause the fact that the smart placement is deactivated sometimes?...

RpcTarget without using

Is there a way to use class that extends RpcTarget without using in production or I have to wait for V8 implementation? Right now, connection seems already closed when I try to execute function. Also, I am calling it from CF Pages bindings (Astro Server Actions) and not from the worker. Thanks!

Serialized RPC arguments or return values are limited to 1MiB

When trying to move to a Service Binding oriented architecture between workers, I bumped into the following error: Serialized RPC arguments or return values are limited to 1MiB This is happening when trying to transmit a large dataset through a service binding to the worker that handles DB operations. The array of data (trimmed as much as possible to an array of arrays) is just over 1 MB in size....

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. ...