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

Not able to access cf object properties from inbound req

Hi I'm trying to access the cf object from inbound req to my worker. But it is showing undefined. My worker is deployed Framework: express...
No description

POSTAL-MIME

is postal mime supported in workers, all my deployments are failing with errors Uncaught Error: No such module "postal-mime". imported from "worker.js" has anyone here successfully used postal-mime or any other email parser on workers prod ?...

WILDCARD REDIRECTS

I was trying to setup wildcard redirects for subdomain which has no dns records via cloudflare workers with the route *is-a.software/*but is it also redirecting those domains which already has a record and are proxied i tried to write a logic via a api which returns list of all registered subdomains which is https://raw.is-a.software/domains.json and the code looks like this ```js export default {...

set preview environment variables while using github ci

i cant seem to figure out how to set specific environment variables for preview builds with workers connected to github, how can i do this so i have like preview secrets vs production secrets?

What's the pricing model for dynamic worker loader

is it counted as independent worker request with subrequest and cpu costs or is it charged only as part of compute on the worker calling it ? I'm asking this because if we use it as interpreter for LLM generated code it'll be huge cost if it costs a seperate worker request per LLM call...

connecting to a GitHub repo with collaborator access

is connecting to github is only limited to the repos in which the user is owner of? I've a repo on my personal account, I added someone else to that repo as collaborator, then on a cloudflare account, linked his account as git integration. but thsi repo is not showing up there?...

Anyone else got unexpected billing due to "console.log"s?

I got an insane amount charged this month without even knowing
No description

Timeout Error (1253) When Registering Worker-Generated HTML as Custom Error Asset

"When I try to register the HTML generated by my Worker as a custom error asset (via PUT /custom_pages/assets/), I am getting the following error: {code: 1253, message: "Error fetching asset: Timeout fetching: h\ttps://my-worker.com/error/page"} Is it possible that this is caused by the loading of the beacon.min.js script? This operation was working successfully just a few days ago....

Cloudflare Pages was unable to be installed on your GitHub/GitLab account.

I signed up a new cloudflare and tried to deploy a repo of GitHub using pages. The GitHub account has never connected to any cloudflare account. After clicking "Add->Pages->Import an existing repository->connect github" on the clouldflare dashboard, I clicked "Authorize and Install" to install the cloudflare app in GitHub. Then the page redirects to the error page in Screenshot:"Cloudflare Pages was unable to be installed on your GitHub/GitLab account. Please attempt to fully uninstall and reinstall the installation." I checked that the Cloudflare app is installed in GitHub account. Then I uninstalled the app from GitHub and revoked the authorization of Clouldflare from Github. But when I repeat to connect the repo in Github with Cloudflare, I got the same error. In Cloudflare there is no any pages project. I guess after installing the clouldflare app in github, Cloudflare cannot receive any data to create a page project....
No description

Unable to access function from pages site

I was able to get a function building my pages site at /api/reviews and it returns the data I would expect when accessing it directly in the browser. From my basic react project, i'm trying to access it and i'm getting a 404, here is how i'm trying to retrieve it. Is there another way? const res = await fetch("/api/review/", { headers: { Accept: "application/json" },...

Add custom domain to workers without register or transfer domain to Cloudflare

As the title saying, my customers own a domain example.com, they won't allow to transfer nameserver to cloudflare just to host a website. It is weird that Cloudlfare Pages allow to custom domain by CNAME but Workers doesn't. Also find some thread saying about it but there are no clear answer yet: https://www.reddit.com/r/CloudFlare/comments/1mmlnku/dear_cloudflare_if_you_want_me_to_ditch_pages_for/

failed: TLS peer's certificate is not trusted; reason = unable to get local issuer certificate

getting this error while trying to scrape my college website ( they kinda allowed us to do so ) and hosting it on cloudflare workers ```js import axios from "axios"; import https from "https";...

Cloudflare Pages Deployment failed

"pages:build": "npx @Cloudflare/next-on-pages", "deploy": "npm run pages:build && wrangler pages deploy .vercel/output/static", command: npm run deploy ...

What's the chance "IoContext timed out due to inactivity" is caused by script upgrade?

Hoping someone with a better understanding of Durable Object RPC internals can help here. I'm seeing these two logs: ``` Error on connection BOBOqEAOPI in Sessions:xxx: Error: This script has been upgraded. Please send a new request to connect to the new version....

i want to deploy previews only for prs, did "Pull Request Previews" get renamed?

when i go to Settings > Build > Branch Control it opens a menu with the checkbox "Builds for non-production branches" when the docs say it's a button under "Pull Request Previews" i'd like to only have it build when a branch has an open pr, currently it seems to be making preview deployments for any branch...
No description

Hit a Roadblock

Hi, I’m having trouble with a VibeSDK project deployment on Cloudflare. The build runs successfully using bun run build and bun run deploy, but the app doesn’t complete the deployment or display properly once it’s live. I’ve double-checked my configuration and commands, but I’m not sure if I missed a step related to Cloudflare DNS setup or record mapping. Could someone confirm the correct DNS setup or share a working example? Thank you for your help....

NextJS 15 builds with opennext not pulling env vars from dashboard

I'm trying to use Cloudflare CI for NextJS 15, and no matter what I do it's unable to properly read env vars into process.env (I'm getting supabaseUrl is required). I've tried setting it in the dashboard as well as in wrangler.jsonc, but no dice. I've tried both @opennextjs/cloudflare 1.6.5 and 1.11.0. Edit: worked when I copied all my env vars into the build variables/secrets section. Maybe this is a weird quirk of NextJS interacting with CF CI. Is there a way to automatically mirror env vars across build + runtime? This is really annoying otherwise....

"RuntimeError: memory access out of bounds" in Rust queue consumer

I'm seeing a recurring issue where, after multiple hours of being up, a Worker consuming from a Cloudflare Queue will start erroring with RuntimeError: memory access out of bounds. Once the Worker is in this state, all of invocations fail with this same error until we deploy the Worker again. ```js...

The Workers runtime canceled this request because it detected that your Worker's code had hung

I'm trying to get peaks and duration from an MP3 file using workers. This is the function: https://paste.ofcode.org/WPQgzaPydsAJ5T45cxSLJF - Any ideas why it would work locally and fail in production with: The Workers runtime canceled this request because it detected that your Worker's code had hung and would never generate a response. MPEGDecoder is a wasm library so it should work...

Workers, containers and durable objects project architecture

So I'm a total noob when it comes to backend / dev ops work so apologies for the dumb questions. I'm a product designer / sveltekit FE designer trying to work out complicated backend stuff for a project I'm building. 😛 Sooo.. first some context.. 1. I want to build a WAV to MP3 convertor that also outputs waveform data in JSON format....