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

Know commit hash of running worker

When the worker is deployed I would like to have a way for the worker to know what is the commit version that was used to build/ship it. Kind of like having an env var that stores the output of git rev-parse HEAD that i can just reference in the worker's code itself.

Cloudflare workers randomly high wall time on New Zealand servers

Hi i would like help with a wall time issue that seems to randomly affect New Zealand traffic connections. For context - Our worker randomly experiences wall time in between Prisma Accelerate queries to Supabase for only New Zealand connections. - We handle 4x more visits from Australia and have visits from other countries that have never even once encountered this issue....
No description

Help! Cloudfare thinks I committed fraud to get my domain.

Hi, a few days back I registered a domain from cloudfare and last night I got a mail by cloudfare with a stripe link that its for ruling out fraud transaction. Actually, I live in India but i used my uncle's credit card to pay who lives in Canada. Also by mistakenly I clicked on the stripe link and now can't access it. What should I do?

Fixed IPv4 for a worker

Hi everyone, I have a worker that fetches data from an api that requires a fixed IPv4. Is there any way to set a fixed IPv4 for the worker? or an alternative solution? Thanks!...

Best way to configure wrangler.toml for team D1 development with per-dev env vars

Question: I’m setting up a Cloudflare Worker with D1 for team development. Each developer will have their own Cloudflare account to deploy/test independently. Goal: - Developers should override local D1 configs (DB name, ID, etc.) via environment variables (e.g., .dev.vars)....

best practice for typegen of secrets in CI?

I would like to generate types in a ci github action but problem is it does not have access to secrets. If I put a blank string value in wrangler.jsonc it will overwrite the actual secret when it's deployed....

Cloudflare openapi schema not up-to-date for hyperdrive mysql

The cloudflare openapi schema for hyperdrive is missing mysql for scheme thus preventing the creation of MySQL hyperdrive connections via e.g. the terraform provider

Batch API Access for `@cf/meta/llama-3.3-70b-instruct-batch`

Hello, I'm currently testing the Workers AI Batch API functionality with LLM models, and I've encountered some issues that I’d like clarification on. Attempt 1: @cf/meta/llama-3.3-70b-instruct-fp8-fast...

Tutorial / Video for "basic" functionality: connecting HTML-forms to Cloudflare Workers + D1

Can somebody please point me to a good "basic" tutorial on the most essential form of interactivity that is relevant for everybody: how to connect a simple HTML input form via a Cloudflare Worker to a Cloudflare D1 database? I would like to see this "without all the hassle" - no local development environment with specific platform / frontend framework adaptors, no use of any "specific" framework by default. Just tell me what the Worker needs to be like and how to ensure it enters the input from the HTML form into the D1 database. Everything I tried - without using specific frameworks like Hono - fails, where it should be exceptionally easy......

Local dev:[wrangler:err] Error: Secret "<name>" not found

⛅️ wrangler 4.10.0 ``` Your worker has access to the following bindings: - Secrets Store Secrets:...

Specific GitHub repo does not work with Workers Builds

Hello! I have a specific GitHub repo that does not work with Workers Builds. Other repos in the same GitHub organization work fine. I suspect this specific repo has issues because it was moved from a personal GitHub account into a GitHub organization and something is cached on the Cloudflare side. - The repo works with the Pages GitHub integration, just not the Workers GitHub integration. - I've repeatedly attempted uninstalling and reconfiguring the Cloudflare GitHub app per the docs. - Renaming the GitHub repository has no effect either, so I suspect there is a different unique GitHub identifier that is being cached by Cloudflare....

wrangler.jsonc: Unexpected secrets_store_secrets

When I npm run dev: â–˛ [WARNING] Processing wrangler.jsonc configuration: - Unexpected fields found in top-level field: "secrets_store_secrets"...

Unzipping a large (500mb - 2gb) zip file

I currently have a worker that allows an upload of a large zip file. I then need to process this zip file and extract all of it's contents. I was hoping to do that via streaming which I thought I was doing with the below code. Is it possible to actually unzip a zip file this large on Cloudflare currently? Would Durable Objects be an option if workers alone aren't?...

Waiting in worker

Hey! Is there a way to wait/sleep in a worker without incurring costs for the waiting time? Basically a setTimeout, or something similar. I call an external service, and sometimes it's too quick. In 99.9% of the cases, the data is there 100-200ms after the first check. I have an extremely restricted frontend (very sandboxed), and I'm not allowed any client side code at all, so that's not an option. Using queues is also not an option.

How to export classes with Astro?

In the vite announcement post I saw that there's various ways to expose classes (for workflows and DO) — but I haven't found a way to do this in an Astro app. I think the issue is that the cloudflare adapter creates dist/_worker.js/index.js but there's no way to extend what is exported from this file. Has anyone else experimented with this and has more ideas to share? Otherwise I might try to open an issue on the Astro repo....
No description

Workers Sentry integration hasn't been working for a year.

Tried to setup the workers sentry integration and it fails to load projects from Sentry. Looks like this issue has been on going for about a year and there's been no response. It looks like a failed/unhandled network request to fetch the projects. Messaging here because it looks like no one has acknowledged this on Cloudflare: https://community.cloudflare.com/t/sentry-workers-integration-not-showing-projects/670669/3 https://community.cloudflare.com/t/500-error-when-trying-to-add-sentry-integration-to-worker/705731/4 https://community.cloudflare.com/t/workers-integrations-unlisted-sentry-projects/693813/2...

[ERROR] Error: COOKIE_SECRET is not defined. A secret key is required for signing cookies. -

Hey ! I am following the guide on setting up Remote MCP with oauth and I run into 2 issues (let me know if this is a wrong thread - couldn't find a better one). Link: https://developers.cloudflare.com/agents/guides/remote-mcp-server/#connect-your-remote-mcp-server-to-claude-and-other-mcp-clients-via-a-local-proxy 1. (minor) - guide assumes the localhost is available at 8787 but default worker port after cloning the repo is 8788. Maybe my env impacted this not sure...
No description

Trying to add a cron job to my worker.

I have an existing worker that uses Hono to expose some API endpoints: ```typescript const app = new Hono(); ......