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 to debug missing dispose call for RPC stub issue?

I am getting this warning
An RPC stub was not disposed properly. You must call dispose() on all stubs in order to let the other side know that you are no longer using them. You cannot rely on the garbage collector for this because it may take arbitrarily long before actually collecting unreachable objects. As a shortcut, calling dispose() on the result of an RPC call disposes all stubs within it.
How am I suppose to debug where is this coming from? I am using service binding and durable objects...

Caching worker responses in Tiered Caching with Fetch API, similar to Cache API.

I have tiered caching enabled, so I cannot use the Cache API to save worker response while returning. What I can use is Fetch API, is there any way to save cache with Fetch API, similar to how we do with Cache API (caches.put). Basically, what I want to do is, cache the API response with Fetch. Flow: 1. Example API: GET /employee 2. Call with GET /employee...

Funny Build Error: PNPM version 10.7.0.0????

So I am building my app cloned from github, with build environment node version 22.9.0 and pnpm version 10.7.0 already specified in build variable section. but the build failed with worker trying to build using pnpm version 10.7.0.0. is this is a bug??? happy to provide more info in thread....
No description

Need Help

Hello im new developper in html end im want to send my site un public but is dont work
No description

Quasar Framework for Vite on Workers

I'd love to see Quasar added to the list of supported Frameworks.

Vite on Workers

When I integrate Vite to Workers through stable CF Vite plugin should I change dev commands to vite dev or still stick with wrangler dev. I don't have access to bindings when starting with vite command.
No description

Issue with SSO Authentication Using OpenNext and Better-Auth

I have deployed a Next.js application using OpenNext and implemented SSO authentication with Better-Auth and Prisma. It works correctly in my local environment, but when I run the application with the "preview" and "deploy" commands, I encounter a 500 error on the request:
POST https://x.x.workers.dev/api/auth/sign-in/social
POST https://x.x.workers.dev/api/auth/sign-in/social
...

Cloudflare Build fails due to `node:process`, but locally `npx wrangler deploy` works.

I'm migrating a Tanstack app from Pages to Workers. Locally I can build and run npx wrangler deploy and see the site live at the *workers.dev url. But on Cloudflare after a git push, it builds then fails at the "Deploy to Cloudflare's global network" step:...
No description

When i use wrangler init to create a basic worker, it uses vite, how do i create a simple worker?

I dont want to use vite, i just want a simple workter with wranger.toml file instead of vite dependencies

Rollback via API

I want to deploy a new version of the worker however i need to be able to roll it back, is there anyway to get the current deployed version via the API, so i can do a deploy based that version e.g. 1. Get Current Version...

Cant get worker to overlay image hosted on cloudflare

I am trying to overlay / watermark images while being served on my website. I have written following worker code export default {...

R2 Error

I configured the domain name in R2, and it was previously running fine. Now, in mainland China, I found that HTTPS cannot be accessed, while HTTP can. What could be the reason for this?

I got an error while build & preview the next js application on my computer in Workers Environment

Populating R2 incremental cache... 25%|███████████ | 1/4 [00:00:<00:00:, 0.00it/s]✘ [ERROR] The object path must be in the form of {bucket}/{key} you provided next-inc-cache\incremental-cache\?\D:\amplify-react\tanzo-next-workers\.open-next\cache\oUSEGols-c5BCjJqJ6wXB\_not-found.cache...

Worker: An internal error occurred. Please retry your build. If this problem persists,

21:07:56.723 Initializing build environment... 21:07:57.190 An internal error occurred. Please retry your build. If this problem persists, contact Cloudflare support. Faced above issue during build while deploying svelte, think it its caused by build var , is there an limit on number of variables? or max size for build vars ? after i reduce the number or if i change the value length , it seems ok . i had 50+ build var...

how to deploy Fastapi APP on Cloudflare

help need to deploy Fastapi APP on Cloudflare

Getting "exceededCPU" error on workers with queues.

I am using workers to with push based queues to process my videos. The videos are barely 20MBs on average, i get them from a usrl and I am uploading it to R2 using stream. Also my worker takes aroudn 10-15K ms on average with 2-3 seconds of CPU time. but I keep getting 'exceededCpu' error randomly and the metrics display those errors as the Exceeded CPU Time Limits errors....
No description

Are the user messages charged in setWebSocketAutoResponse?

I am trying to implement a cheap and predictable-cost ping/pong system in my Durable Object Websocket to allow client check server connection is alive. https://developers.cloudflare.com/durable-objects/platform/pricing/#compute-billing
"3 Application level auto-response messages handled by state.setWebSocketAutoResponse() will not incur additional wall-clock time, and so they will not be charged."...

My site is not deployed on the internet

When I deploy my website it says "Success: Your site was deployed!" but when I click on my "page.dev" link or write my domain name on the internet. Nothing happens and the site is not online. However, when I try to launch the site in local host from my computer, it works perfectly. Help me pls...

nestjs Worker ?

Hello here ! Sorry if the question has been asked before, but I could not find. So I'll ask you gurus about this : Is it realistic to try to deploy a nestjs service as a Cloudflare Worker ? I could see tutos with react or next, but not (yet) using nestjs. Thank you !!...

Bundling with Workers

I have a monorepo using npm workspaces, and I'm trying to set things up so that I can deploy to workers. However, when I run wrangler deploy I get the following: ```X [ERROR] Could not resolve "@node-rs/argon2-wasm32-wasi"...