Kavatch
Kavatch
CDCloudflare Developers
Created by Kavatch on 8/27/2024 in #workers-help
Workers technical documentation
Is there any technical documentation on how the wasm file is built and what exactly has to be exposed for it to be a valid wasm for cloudflare and what the zip should look like that is uploaded + where to upload it? Or do I just have to reverse engineer everything and try to find it out?
2 replies
CDCloudflare Developers
Created by Kavatch on 3/29/2024 in #workers-help
Paid Workers Denial of wallet
Hey, when using workers, I can already make a limit on the CPU Runtime to make sure long-running workers don't result in higher than expected bills. Is there also a way to prevent too many invocations from a bad actor? Can I somehow limit that the worker should be able to run X times a day max? Because I know the worker I wrote will should not be called like 10 million times per day and I would love to limit it to only X invocations per day with perhaps a warning at 80% of X request being reached.
2 replies
CDCloudflare Developers
Created by Kavatch on 2/4/2023 in #workers-help
Workers Error 1101 from example project | Cannot read properties of undefined (reading 'fetch')
Since yesterday I am unable to test my worker applications with npx wrangler dev. They start up just fine however I then always get this error: https://hastebin.de/zekujojino.csharp This error occurs on my projects but also on the default / example repo. For me I can recreate this error every time by pulling the example repo via: npm init cloudflare cloudflare_test worker-rust then changing the build command from command = "cargo install -q worker-build --version 0.0.7 && worker-build --release" to command = "cargo install -q worker-build --version 0.0.8 && worker-build --release" (Noticed the updated version because on Windows 0.0.7 is broken. See here: https://github.com/cloudflare/templates/pull/152) And then just trying to start up the example project without any changes: npx wrangler dev OS: Windows 10 Wrangler: 2.9.0
1 replies