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

Getting Internal server error of CF pages

is there any maintenence window going? all my cf pages are 500.

CF Worker not getting environment variables

Hi all -- we have a cloudflare worker that we haven't deployed in over a week, and today it started 500ing - logs indicate that it isn't receiving env vars (specifically secrets). We've confirmed that all of the variables appear to be correctly populated, tried rolling back versions, no dice, so this seems like a platform issue. Is anyone else seeing any issues like this?...

Monorepo on Cloudflare Workers: Unable to pass down Environment Variables

Hey guys, new to Cloudflare Workers, Wrangler, and D1. Trying to scaffold out to use Cloudflare Workers in a monorepo structure, and get it deployed: Monorepo Structure:...

Unable to serve static file within Public folder

Hello, I'm a beginner with cf workers, I don't quite understand pretty much of how the Binding work for example in this scenario, env.ASSETS.get() object is used to serve the homepage but throws an error regarding UN-implemented get() method I have used fetch() but still failed, so please, somebody help me out....
No description

Having a pnpm-workspace is breaking the deploy on Cloudflare

Hello, On multiple project, as soon as I approve some build (let's say prisma) by running pnpm approve-builds it generates a pnpm-workspace in addition to my package.json automatically. As soon as this file is present, my Cloudflare Worker stops deploying...

O2O setup to Shopify fails for one specific edge (KUL, Malaysia) with simple passthrough worker

I got a bunch of 403 errors for all visitors from Malaysia since 11pm SGT 21-Oct. We are using cloudflare workers to modify some elements in our Shopify shop. To enable CF workers we proxy the traffic via our CF setup with a CNAME, also known as Orange-to-orange (O2O), . We did not change anything about our setup and worker was smooth sailing ever since launched. Now the origin (Shopify) responds 403 for Malaysia only with a simple "You do not have permission to access this website". Shopify support has done a reset "So we were able to do a Cloudflare refresh on your domain.". But once I enable the CF worker the issue returned after it did work fine for maybe a minute or 15....
No description

Failure to deploy a static html site with Pages

I'm following the instructions here: https://developers.cloudflare.com/pages/framework-guides/deploy-anything/ I have a "hello world" index.html in the root but the deploy links show successful but fail to load in any of the dev links provided ...

Overcoming S3/R2 metadata prefix (x-amz-meta-cache-tag) to attach Cloudflare Cache Tags

Hi everyone, Looking for guidance on Cache Tags with AWS S3 as the origin. We currently do purge by URL (over 1M URLs/week) and want to switch to tags to dramatically reduce the number of purge requests. On S3 we add user metadata, so instead of a Cache-Tag header we only see x-amz-meta-cache-tag (which seems typical for object stores: R2 also uses x-amz-meta-*, Azure Blob uses x-ms-meta-*). The only working pattern we have in a Cloudflare Worker is:...

Support for inbound tcp in workers

In this blogpost (https://blog.cloudflare.com/workers-tcp-socket-api-connect-databases/#whats-next-for-sockets-on-workers) It is mentioned at the end that in the future there will be support for inbound TCP in workers. Is this still being worked on?

Github Integration Missing Preview URLs

Hello! I've been using Workers for a bit, and recently integrated with our GitHub repo for CI/CD. I have it all setup so that on a new PR I trigger deployments via wrangler versions upload. I can see a preview URL being created in the Build Log, which I can navigate to, but I'm not seeing that preview URL in the Cloudflare Bot's message on the PR. It's a bit of a pain to have to click the build link, scroll through the logs, select the link in the logs, and visit it....

x Internal errors encountered: Resource temporarily unavailable (os error | 11)

Getting this error on a frontend build ``` 13:10:04.065 x Internal errors encountered: Resource temporarily unavailable (os error 13:10:04.065 | 11)...

Pages Functions in Astro don't work

Hi, I'm trying to make a Pages Function, but I'm starting to lose hope. It's basically my first time playing with it... I'm using Astro as the framework of my choice. so I made the
functions
functions
folder in the root of the project. In there I made a simple script: ```...

How does Cloudflare-Workers-Version-Key work?

I want to gradually deploy a new version of multiple workers, can I do so with the versions of the workers in sync? If workers A/B/C all have a 90/10 split in version, and I add Cloudflare-Workers-Version-Key to all requests in between the workers, will they always choose the same split bucket, e.g., the 10% bucket? Or will the key be used to randomly determine which of the version ids and so there's no guarantee that the multiple workers are in sync together....

react-router server action w/ D1 context and cancel button

Hello! So I have react-router application in framework mode with a simple form which uses a Bootstrap buttongroup: ```ts <div className="btn-group" role="group"> <button type="submit" className="btn btn-outline-primary">Submit</button>...

Build Error

Hi, need help to solve this error pleas.
No description

ParseError: PropertyNameExpected when deplying Pages

Im getting a ParseError: PropertyNameExpected when attempting to deploy my project to cloudflare pages. I have a wrangler.jsonc in my project which I have been able to successfully use to run wrangler deploy commands. It says A wrangler.toml file was found but it does not appear to be valid. Did you mean to use wrangler.toml to configure Pages? If so, then make sure the file is valid and contains the pages_build_output_dir property. Skipping file and continuing. but I have "pages_build_output_dir": ".svelte-kit/cloudflare", in the .jsonc....

Add git integration after project creation

Hi. I initially deployed my project directly from the wrangler CLI. Is there some way to now switch my project to a git integration?

Is the worker cache (using the fetch API) 'private'?

Hi there - looking at how to cache a request serverside so we don't query more often than we need to - and ran into this in the docs: https://developers.cloudflare.com/workers/examples/cache-using-fetch/ Are these caches 'private'? As in - can anyone hit them and are they suitable for holding personal data? A little bit confused in how it's different from the other cache API https://developers.cloudflare.com/workers/runtime-apis/cache/ Thanks so much, Ollie...

Tail Consumer Limitations in `wrangler dev`

I'm building a tail consumer worker for observability/tracing and hit some limitations in wrangler dev that make local development challenging: Issues with tail() API in local dev: - item.scriptName is always null → service name shows "unknown-service" - item.wallTime and item.cpuTime are always 0 → duration shows 0ms (Spectre attack protection)...

Can we have an option to let worker's build variables and secrets extend the runtime ones?

When environment variables are misconfigured in production, it is really hard to debug since it only throws a 500 Error without detailed info. Currently, I'm using @t3-oss/env-core to validate my env variables, and I want to process it during the build time. However, right now I have to manually add those runtime variables and secrets in the build config, since it cannot get runtime ones. I'm wondering if you can give an option to extend the runtime variables? Because even if I can manually add...