James
James
CDCloudflare Developers
Created by pyx :3 on 4/23/2025 in #workers-help
wrangler dev error
dev is for Workers, whereas Functions are a Pages concept, so you want to be using pages commands
5 replies
CDCloudflare Developers
Created by pyx :3 on 4/23/2025 in #workers-help
wrangler dev error
wrangler pages dev is probably what you're looking for
5 replies
CDCloudflare Developers
Created by ddsgadget on 4/23/2025 in #workers-help
Suddenly all our ctx.waitUntil workers are failing?
Happy to help, hopefully the refactor is a pretty quick and easy one!
10 replies
CDCloudflare Developers
Created by ddsgadget on 4/23/2025 in #workers-help
Suddenly all our ctx.waitUntil workers are failing?
My guess would be that this was just slow enough before to where your waitUntil was running before the response was sent, and thus request was still available. But Cloudflare are always speeding things up both in software and hardware so it's possible you're just hitting this race condition much more frequently now.
10 replies
CDCloudflare Developers
Created by ddsgadget on 4/23/2025 in #workers-help
Suddenly all our ctx.waitUntil workers are failing?
For example (pseudo):
const data = await request.text():
ctx.waitUntil(doSomethingWithData(data, env));
const data = await request.text():
ctx.waitUntil(doSomethingWithData(data, env));
10 replies
CDCloudflare Developers
Created by ddsgadget on 4/23/2025 in #workers-help
Suddenly all our ctx.waitUntil workers are failing?
Is there a minimal full code example you can share that I could test, that used to work but no longer does? I would expect the code you shared to error, for what it's worth - reading anything from the request inside a waitUntil is generally not a great idea, and you should instead get the info you need while the request context is still active, and then pass that down into whatever you run in waitUntil. You might have been lucky before with timing perhaps and the waitUntil ran before the response was sent? But that's just a theory and very hard to say.
10 replies
CDCloudflare Developers
Created by ddsgadget on 4/23/2025 in #workers-help
Suddenly all our ctx.waitUntil workers are failing?
AFAIK, reading request.text() within a waitUntil has always caused an error like that, it just wasn't super obvious in the past before Worker Logs had persistence. Have you made any changes to the worker configuration, compat date, enabled logs, etc. that could impact this? As far as I can tell, there's not been any changes to this functionality in years, and there's no widespread reports.
10 replies
CDCloudflare Developers
Created by kasuga takaki on 4/18/2025 in #workers-help
Build failing with ENOSPC: no space left on device for monorepo project on Cloudflare Workers Build.
To be fair, Pages had ~100GB disk (and much faster disk too), while Workers CI, despite being the paid platform, has much lower limits at ~8GB. 😦
6 replies
CDCloudflare Developers
Created by Tjandra on 4/17/2025 in #workers-help
Fetch question
Try passing redirect: ‘manual’ to your fetch options
3 replies