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

`wrangler types` doesn't generate generic `DurableObjectNamespace`

Running wrangler types on my worker project outputs this: ```ts declare namespace Cloudflare { interface Env {...

Help with OpenNextjs and BetterAuth

I'm getting this error on my production build on Cloudflare Workers. Here is the source code https://github.com/safecircleia/waitlist all enviroment variables are setup correctly and it works locally Nor email or github/google or any oauth works...
No description

Paid plan using Workers Queue requests encountering a 524 HTTP error code.

Here are my code and log screenshots. The origin server cannot guarantee a response within 100 seconds 100% of the time. In this situation, what should I do to avoid 524 error codes?
No description

Starlight project within existing Astro project triggers random KV PUT 429 errors

Hi there, we have an Astro project deployed for a landing page and it also has a Starlight docs section. We've noticed that for the starlight docs section, the assets (in this case the whole starlight portion is considered static assets) are sometimes returning 500s and the response from the server shows KV PUT 429, but we don't have sessions nor workers KV setup for the project. So it isn't very obvious what the issue is. Any hints on where to look? Btw this is a project that's deployed via Workers for Platforms....

OpenGraph Images Generation

I currently migrated to use @opennextjs/cloudflare. I am wondering what options to use to generate OpenGraph images. Can I use @cloudflare/pages-plugin-vercel-og though it contains pages. ...

Error code: 600010

It keeps failing to pass validation, only the untraceable browser can pass validation
No description

Account Token not workin in GH Actions

I am currently setting up a github action to push my astro static site to workers. I created an account token with the proper permissions (checked the docs) but I am getting an error saying that the token doesn't have the ability to read the user email. This makes sense since the token is not tied to a user. How do I configure the action to not check for user token fields since it's an account token?...

Uncaught Error: tty.ReadStream is not implemented

Using "compatibility_flags": ["nodejs_compat"] + "compatibility_date": "2025-04-03",, in my wrangler config to enable built-in Node.js APIs and add polyfills. However when I deploy my worker it throws this error....

"Unknown error has occurred (code: -1)" when uploading Static Assets

Hi, I wrote my own code to upload static assets to Cloudflare by following this guide: https://developers.cloudflare.com/workers/static-assets/direct-upload/
error: Failed to upload asset files: An unknown error has occurred. Please contact support: https://cfl.re/3WgEyrH (Code: -1)
It's been working until recently, it's failing randomly. It doesn't fail for all of my apps, just one (so I can confirm my implementation does at least work some of the time)....

Access to container preview?

Hi! Is there a way to get preview access to the containers feature on the workers platform?

Workers DDoS protection

Hi there. I am considering using cloudflare queues and the producer / consumers with workers. I am interested to know what is the best solution to handle DDoS on the producer worker that would have an exposed URL like a public api. This is a URL I would be giving to customers.

API Request errors for better-auth on Cloudflare Workers

Hey! Has someone gotten better-auth to work on cloudflare workers? I am trying to deploy a Nuxt 4 application (via NuxtHub) to cloudflare workers, deployment works, but better-auth fails on requests to API endpoints, despite it working flawlessly in development, so this must be cloudflare-specific issue. I consistently get: CLIENT ERROR: POST https://app.netzo.dev/api/auth/sign-up/email 500 (Internal Server Error) SERVER ERROR: SERVER_ERROR: TypeError: Cannot read properties of undefined (reading 'includes')...

Secret text directly supported by wrangler

I want to have some secrets in my wrangler.jsonc file and have them when deployed. When adding secrets this way, it successfully deploys along with the secrets ```json...

Has anyone figured out how to give bindings to SST workers? (e.g. Browser / AI bindings)

SST people are clueless atm. Maybe someone has found something to get it to work.

Workers AI monthly usage limits

update: this error wasn’t coming from the workers AI API, my mistake i’ve been looking through the Workers AI docs concerning Pricing and Limits. the only limits i see documented are around per-minute, for example “720 requests per minute” for Text-to-Image. the pricing page documents per token / per neuron prices for different models, but has no mention of limits other than the free allocation per day limits, but i am on the Workers Paid plan, so that shouldn’t be relevant. however, i have started seeing the following error when i try to use the @cf/black-forest-labs/flux-1-schnell models for text-to-image generations: “Monthly usage limit for image reached for your plan. Please upgrade.” any suggestions on what i should do?...

Dramatic slowdown when streaming large body

I am trying to debug what might be causing my production deployment to respond so slowly. Here is the link: https://h2-prod-a12f47db3018f82aae88.o2.myshopify.dev/business/fleet-aware. As you can see the server response time of the initial html is approximately 1s. However I have logged the execution time of all my code from beginning to end including react rendering time and I am logging <100ms processing times. I can see this seems to be an issue specifically with the worker runtime because I can see that if I run my code locally the execution time I log is indeed longer (400ms) but the initial html request server time I see in the browser is roughly identical (~400ms) indicating no overhead when running locally. I believe this 900ms slowdown when running in production is proportional to the body of the HTML because I observe approximately 100ms slowdown for a much smaller body page: https://h2-prod-a12f47db3018f82aae88.o2.myshopify.dev/business/cs-test. (The initial request is usually over 1s, but subsequent requests range from 200ms to 800ms). Here are the basic facts laid out:...

from wrangler deploy to on-push

I have a worker application which I currently update via command line. how can I change it to use github app integration instead?

Better error logging

Hi, I am trying to log the errors in a better way to include the stack trace on the logs. When I checked the docs, (https://developers.cloudflare.com/workers/observability/source-maps/), once source maps are enabled, we would see the trace with respect to the source maps. But after enabling, I am still seeing the trace with respect to the minified version (js). ...
No description

A unique URL and for each Workers build like Cloudflare Pages

I have a wrangler.toml file that has my name set to "website". I want to also have another worker, "website-staging" which is available on a different URL and I want that worker to build all branches. But my wrangler.toml is committed to github so it will always use that worker and overwrite my production worker. Any ideas on how I can set this up right? I feel like Cloudflare Pages had this figured out and would do a deployment to a unique URL for every build