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

New commits are not getting deployed.

Recently GitHub had flagged my account so maybe because of that auto deploy is not working. I am getting remote: Repository not found errors. Is there any way to push changes to the same worker ? I tried to disconnect the integration and connect it again, but i couldn't find any button to connect my github account back....

Pages, Functions, 404s

Hi, I am having a lot of trouble getting my site live. I have already tried using chat gpt to trouble shoot everything but i still get 404 errors. It seems like theres an issue with Functions working on the page, but I cannot figure out how to fix it. These are the instructions chat gpt gives me, but I do not see an "Enable Functions" button... In Cloudflare Dashboard → Pages → Your Project → Settings → Functions,...
No description

Cloudflare to siem

Hello, I have a Cloudflare Business license and I want to send logs to a SIEM system. Are there any limitations in doing this under a Business plan? Or is an Enterprise license required to enable log forwarding to a SIEM?...

Worker Build Caching not working - pnpm monorepo

On any of my monorepos that use pnpm, the longest step when building on CF Workers is Installing dependencies. If I take a look at the logs, I see a Failed to restore dependencies from build cache. Skipping. message: ``` 13:42:55.785 Initializing build environment... 13:43:07.022 Success: Finished initializing build environment...

Worker has successfully build and deployed but returning 404

I had originally deployed a Hello World! app with a worker to a custom domain and that worked. I then set up a github repo and tried that first with a Page and now with a Worker. In both cases the build is successful and I get
Success: Deploy command completed
Success: Deploy command completed
in the logs, but now when I go to either the workers.dev URL or my custom domain I get nothing. I have the worker in the DNS records, but still 404. Not sure what I am missing

Not able to acces betterAuth session on server side after deployment Working locally fine?

I have built this project using next js for frontend and HonoJs for backend. Frontend was deployed using OpenNextJs. For auth im using Better Auth. Till yesterday deployment was working fine in both client and server side, i mean i was able to access session in client, server and middleware but strangely since today's morning its not accessible in production but working fine locally also not getting any error in compute Observability as well. I m sharing my git repo with latest commits, if any one have idea please help me out. Live link - https://wfe.ioabhishek.workers.dev Git Repo - https://github.com/ioabhishek/cloudflare-saas-stack.git...

Workers deployed but cannot access through url

https://developers.cloudflare.com/workers/framework-guides/web-apps/more-web-frameworks/hono/ I have deployed this template, it was successful but I cannot access the app through the url it provides....
No description

How to disabled zsdt compression?

My page on https://stefanoltmann.de/oni-seed-browser/ shows an error "zstd unsupported". I have no idea where that comes from. The same thing is (still) deploy as https://stefan-oltmann.de/oni-seed-browser (GitHub Pages) where everything runs fine. ...

Workers in HKG should be opt in, not default massive security hole.

I just discovered today working with Anthropic’s models that cloudflare uses workers in HKG (Hong Kong) by default unless you pay for an enterprise plan and filter out the region. This is a massive security risk for companies operating in the AIPAC region trying to avoid touching Chinese servers. You might as well route traffic through Beijing at that point. Even if you use a WAF and geo block HK / China that doesn’t stop your worker from running on a server in HKG. So is there a way to ensure my workers never run in a HKG/Macau data center without my consent? A feature provided in Vercel’s free tier?...

How to purge cache for "worker"'s static HTML page?

I've following the CD Vite plugin guide is create a starter project, then added a "index.html" at project's root, and deploy by running "npx wrangler deploy", (Also, I'm using a free account). So now if I go to my worker domain, I see the html home page, if I go to any path that is not home page, I get the "Running in Cloudflare-Workers!" plain text response. So it's working. But the problem is, after I deployed a new version of the home page "index.html", I can't see the changes live. I believe it is because the page been cached, judging on the Cf-Cache-Status: HIT in the page's response headers. So then I was looking for ways to clear cache. Then I found this Purge everything doc, but I cannot find the "Caching" section/page in the CF dashboard. I don't know if this is because I'm using a free worker.dev subdomain, and you can only purge for your custom domain. Then I found there's API for cache purging from here, post /zones/{zone_id}/purge_cache, but it needs a zone_id, so I tried get /zones to see what zones I have in my account, and I got none. So I don't know how to proceed with this method as well....

`unsupported_grant_type` with `google-auth-library` when in dev/deploy with wrangler

title. google auth library works in standard dev, but when using npx wrangler dev or npx wrangler deploy it fails to work. other environment variables load file so thats not an issue. from googling, there is a possible synchronization issue? (how that happens locally im not sure). ive flipped back and forth on the standard dev => wrangler dev like 3 times and its the same result: one works, one doesnt. the error is pretty normal + vague: ```...

Error: D1_ERROR: internal error; reference

Hello, been noticing these errors on and off over the past week and it causes my services to fail, even if I haven't made changes. Here's a couple of the latest ones: "Error: D1_ERROR: internal error; reference = qmfaqrig3q4klcdqicfi02bu" "Error: D1_ERROR: internal error; reference = uo8t49qqe0618bl2e5tl2318"...

Is it possible to edit which parts of the logs are redacted?

Hey folks, Cloudflare removes our trace IDs we use to identify logs with certain events happened and it's renders logs useless for us since it's impossible to find logs for specific cases anymore.

Cloudflare Workers cannot connect to Vultr's API

Connecting to Vultr's API through Cloudflare workers causes a 403 forbidden. The 403 forbidden seems to be coming from Cloudflare directly looking at the developer tools. Is there anyway to get any insight into what's causing this? Vultr have confirmed they have no banned or blocked any of Cloudflare's IPs and 403 is not expected.
No description

Using Hono.js on Cloudflare Workers Free Plan with Postgres, JWT, and OAuth

Can honojs work on cloudflare workers free plan with postgres db and hono's built-in JWT and auth with google, github (google and github from hono's list of oauth providers) and custom email auth?

Deploy working, but Cloudflare build failing

I'm having a bit of a weird problem with https://github.com/jakearchibald/random-stuff. If I pnpm run build and pnpm run deploy, everything works fine. However, if I push to GitHub, the Cloudflare build fails with:
Error: The provided Wrangler config main field (/opt/buildhome/repo/dist/random_stuff/index.js) doesn't point to an existing file
Error: The provided Wrangler config main field (/opt/buildhome/repo/dist/random_stuff/index.js) doesn't point to an existing file
...

I have paid for Workers plans but still getting a 1102 resource limit error for my pages app

I deployed my app on pages, not workers, my account id is b8115041c042b125ed83f7aaf5f99373 I have checked my app metrics and the 99.9th percentile CPU time is 261.7 ms, so it should be below the limits. I have already specify
[limits]
cpu_ms = 30_000 # 30 seconds max for paid plan
[limits]
cpu_ms = 30_000 # 30 seconds max for paid plan
...

OG IMAGE ON MY SITE WONT UPDATE!!!

All morning been trying to change the OG image on my site, but the template-based image (not even on the project anymore) keeps showing up!! The only possible explanation is that Cloudflare Worker Pages has cached the image. Since I have new images that must use the same filenames (I’m deploying a Nextjs static site on Cloudflare Workers), I need to purge the cached image from the worker."...

DNS issues

We transferred two websites from GoDaddy. Why did all the DNS records for DigitCells.com transfer successfully, but gopathdx.com did not? Do you have all the DNS records on your end? We have the business plan.