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

how to view console.log when running via `wrangler dev --remote`

Hi. I'm using react-router v7 and tinkering with browser bindings. I'm at a loss at how to observe server-side console.log when running wranger dev in --remote mode. I only see a bunch of [wrangler:inf] GET ... logs on the terminal. Help please!

Wrangler dev - local https?

Does wrangler dev create a ssl certificate for me on 127.0.0.1?

Startup Time Exceeded Despite CPU Profile Showing <400ms

Hey all, I'm running into a weird issue while deploying a Worker. I’m getting an error saying my Worker exceeds startup limits:
✘ [ERROR] Your Worker failed validation because it exceeded startup limits.
To ensure fast responses, there are constraints on Worker startup, such as how much CPU it can use, or how long it can take. Your Worker has hit one of these startup limits...
...

DNS missing for custom_domain = true worker

Hello there, I'm successfully deploying a worker with custom_domain = true, but the worker isn't responding on the domain because there are no A or AAAA records in my DNS for that zone... I thought the custom domain deploy would automatically create them, but I guess not. Can you tell me what DNS records I would need to add to get the worker to respond on my zone?

Enable ip geolocation on cloudflare worker on workers.dev domain ?

Is it possible to add the ip geolocation on a cloudflare worker which is served from *.workers.dev ? If so how to do because the documentation don't mention it. https://developers.cloudflare.com/network/ip-geolocation/...

Our app is down. Need to talk an agent urgently

Hi there, we are not able to initiate a live chat via the app. We are on the business plan and need to speak to someone. Could you please let me know how we can connect?

Unable to Authenticate request with 10001 error code

I want to create a worker and put a script into it, based on the explorations i came upon this script, but I'm getting when i run the script (attached a file).

Error using Mysql2 with Vite

I'm trying to use Mysql2 with Vite + React Router but some poly fills seem to not work correctly for me. When importing in mysql2 in any file it fails to load wiht the error ```js buffer.hasOwnProperty is not a function...

Cannot recover MFA.

I added a header with the token the support team sent me to my email https://www.support.cloudflare.com/support/s/case/500Nv00000LvuG5 , but now I cannot contact with them. Can someone help me? we are a bit of desperate, we have in prod this domain and needs to pay the invoices.

Remix deployment with cloudflare vite plugin - only static client-side assets are supported?

Hi, Is there a way to also deploy the server side loaders to workers with the cloudflare vite plugin? For me it only uploads the client side stuff. Thank you! ...

Could not create remote preview session on your account

Hi, I'm using honojs and Cloudflare workers and I got this issue when I ran "wrangler dev --remote". It was working yesterday and now its not, I haven't changed anything. Can any one help please?

Set up issue

Hi, I’m new to Cloudflare Workers. After signing up, I’m still in confused about what to click next to create my free API or set up my project. Can someone please guide me step by step from the dashboard? I really need help details cause I'm zero level coding person but still want to try my coding level. Thank you.

A Little Confued About Agents Schedule

Hello, I'm confused scheduling tasks with the Agents SDK, if there's a new scheduled tasks, for example the "checkFlights" function, and its supposed to be called 10 seconds in the future, why i can't see in the console.log the text: "Checking flight ${data.flight} for ${data.date}", it seems like the function is not being called, what's the correct way to make the function to be called/executed after the 10 seconds?, is there something wrong with my code?, I have already copied and pasted the examples from cloudflare but the callback fn is not being called. Thank you....
No description

when using workers, does cloudflare have to have access to your source code?

It seems to push to workers, you have to give cloudflare access to github to get the code into the system. Is it possible for me to compile my worker locally, and push the binary? (Say I am using rust)...

How to source process.env in monorepo in a worker?

I have a simple email worker. My registry imported from another package is erroring by not finding the env vars that are being parsed I am running the script in package.json "dev:email": "dotenv -e ../../.env -- bun run wrangler dev -c src/cloudflare/email/wrangler.jsonc", I can confirm that dotenv is picking up the env file...
No description

Log previews missing

Why are my log previews missing all of a sudden, I now need to expand each log line in order to get the detail. Is there a setting I can change?
No description

WebSocket refusing to connect (1006)

HTTP error 500, WS error 1006 Server code: ```ts const pair = new WebSocketPair(); const [client, server] = Object.values(pair);...
No description

Stop wrangler from opening PR's in my github repo

I have two environments defined for my worker "mainnet" and "testnet", every time a build is triggered wrangler opens two PR's to my repo one to change the top level name in my wragler.jsonc to end with -mainnet and one to change it to -testnet

error 526

help me please
No description

Sharing a D1 Database in a monorepo

I am building a project that has a public facing React Router app, a backoffice app and a background worker service. All of them built on Workers. All of these should have the ability to access a D1 database for various business logic. I thought about having a shared package that handles the db logic. However, not sure how this would work with local emulation of D1? I am also thinking that I am overcomplicating this and exposing API endpoints in the background worker would be the best solution......