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

unkown warnings popping up when doing wrangler run preview

im getting alot like 2-3 warnings like this i cant even track stack trace to see which file its comming from - can anyone tell me which file can possible give this issue ? im not using axisIndex anywhere in project i searched it im using opennext...
No description

Cannot extend an interface 'DurableObject'. Did you mean 'implements'?

I have this tsconfig.json: ```jsonc { "compilerOptions": {...

Can you deploy both static assets and back-end apis in the same worker?

I'm trying to deploy a Hugo static site with a contact form, and have the contact form interact with an /api/contact worker deployed from the same repository. is this possible with wrangler?
I asked the AI overlords for help, and this is what it spit out for me: ```TOML...

Snippet returning 404 when fetched from worker

Hi, I have a worker that I'm using to develop a snippet (have to use worker so that I can profile performance). Due to being a worker I'm using it via hitting a route with it and providing the path of the response it's modifying via a query parameter, however it seems that this URL returns a 404 response, when hitting it from my browser / wrangler locally returns a valid response.

Routing not working on root domain

I'm setting up a worker on a brand new cloudflare account. I have tested that it works. I also set up a test subdomain and router for that and found that the worker works properly. However, when I set up routing for the root domain, the routing doesn't seem to be working. I confirmed that the worker is not getting called in the metrics and logs. ...

Concurrent workflow instances limited at ~120 instead of 4500

So I was observing workflows dashboard this morning, because I made a quite significant changes to my worker last night. I was expecting approximately 400 instances per minute that are spawned from a parent workflow that are batched into 4 groups, 100 per 15 seconds. I was expecting all to be ran on their given interval. But instead of all been completed, I see a huge number of workflow instances being queued; then it accumulated at least 1 thousand of instances. I observed it on time, and turned off the scheduler 'cron'. Hence stopping the ability to generate more queued instances. I am not sure if there is anything from worker that is limiting the ability from achieving the ideal concurrent instances, or any other reason, please help Also the workflow dashboard also been extremly slow. And whenever I push any new debugging changes, it failed the build...

✘ [ERROR] A request to the Cloudflare API failed. Authentication error [code: 10000]

The exact error message is "✘ [ERROR] A request to the Cloudflare API (/accounts/f5b8a9e5fc9cb5367a194a5357bcdf7c/d1/database) failed. Authentication error [code: 10000]" Now, I have tried logging out and logging in back 25 times, but nothing chages, I have tried changin the laptop but still the same issue. This issue comes when I run any wrangler command remotely that is with --remote flag. I am trying to run a query in d1 database remotely....

Assets serving tail latency

I ship static assets with my worker, in run_worker_first=false mode with custom _headers. This is a low volume worker (hundreds of requests per day). I'm seeing massive tail latency, TTFB of over a second (vs 40ms on a warmed up worker in my closest colo). Is this normal & to be expected?...

Wrangler Dev isnt auto updating

hey im using opennext for nextjs monorepo and when i run yarn wrangler dev it just runs a precomplied version in .opennext/ folder and when i change anything like any text on page it doesnt update or if i change any api file it still doesnt update anything...

[OpenNext] Unexpected errors and warnings in Cloudflare build logs

Hey folks, I'm migrating from Next-on-Pages to OpenNext and started seeing some errors and warnings in my Cloudflare build logs that previously only appeared during local development. It seems like the app is being built in a "local" context, even after pushing to prod. For example, errors like: Cannot access [service binding method] as we couldn't find a `wrangler dev` session for service "[service name]" to proxy to. I'm familiar with these locally, but why would they occur during preview/prod deployments? Has anyone else faced this issue?...

Token still valid after all tokens have been removed

Hi there!) so i have a token saved localy i used for dev, now i refreshed/removed all the tokens from the dashboard (both user and account ones) but the local one still works anywhere else i missed to check?...

Cloudflare Removing my variables from runtime everytime

Hey cloudflare is removing my variables after 2-3 build finishes i dont know why its happening i added variables 5 times now and im sad about it anyone else getting this issue? i was deploying my nextjs website on workers...
No description

Wrong D1 instance bound after deploying with wrangler.jsonc

Hi all, I am working on configuring environments for my project and have set up the following wrangler.jsonc for my project: I have to post as a gist due to discord limit:...

String formating in HTML embeds

I have index.js with HTML embed. Embed has whole HTML + CSS + JS. I use VC Code, and whole embed is marked orange as it should, but for one specific place code turns colorful and I get build error. Can u tell me how to fix it? Thanks...
No description

Cloudflare leaving Maxmind for GeoIP?

We've been fetching ISP data from Worker's request data request.cf.asOrganization request.cf.asn Something changed this week and ISP data is a mess (atleast in APAC.) Let's take an IP 112.207.183.0/24 - Cloudflare is showing "HOME_DSL" as ISP name....
No description

Is there a way to make a magic link email through worker?

I am trying to make a auth server, and I am trying to make a magic link at the registeration process to check their email. I tried this API, but since it needs destination_address to be verification email, It didn't fit my needs well. https://developers.cloudflare.com/email-routing/email-workers/send-email-workers/...

Monorepo: how to avoid installing dependencies for _all_ packages?

with turborepo i could do pnpm i --filter=app to install only the packages needed by my app and its packages i have A LOT of apps and installing all packages for each deployment is slow and wasteful...

The library "got" is still not working

It fails with this message: text: 'Uncaught Error: The options.socket option is not implemented\n' + ' at node-internal:internal_tls_wrap:129:19 in TLSSocket\n' + ' at index.js:103192:26 in...

puppetteer-core does not work with websockets: "ws does not work in the browser"

So, it looks like somehow, wrangler is picking up the browser implementation of the ws package (https://github.com/websockets/ws/blob/master/package.json). I tried using different WRANGLER_BUILD_CONDITIONS and WRANGLER_BUILD_PLATFORM to fix the issue, but haven't managed to fix it. I'm a bit stuck