topsy5409
topsy5409
CDCloudflare Developers
Created by topsy5409 on 2/12/2024 in #workers-help
Worker deploy issues?
This afternoon when deploying updated workers I noticed they weren’t actually updating immediately. They show up as new deployments in Cloudflare dash for the worker, but aren’t actually live until minutes later. Anyone else notice?
1 replies
CDCloudflare Developers
Created by topsy5409 on 3/17/2023 in #workers-help
Testing with unstable_dev and production service bindings?
In development I have a javascript worker with a service binding to a production wasi worker. When running tests with unstable_dev, the service binding to the worker in production isn’t working, even though I’m providing unstable_dev with the wrangler config file that has the service binding to the production wasi worker. Does unstable_dev support this? The docs have an example of multi-worker testing, but not with a situation like this, where the child worker is a wasi worker in production. Thank you!
3 replies
CDCloudflare Developers
Created by topsy5409 on 3/15/2023 in #workers-help
FetchEvent not received until POST request finishes?
While uploading a 100mb file to a worker via POST and PUT requests, I noticed I didn’t receive fetch events until seconds later. In my worker I check the content-length header, and if it’s too big I call cancel on the request readable stream and return an HTTP 413 error. Why isn’t the fetch request handler being called immediately? For this example, I expected to be able to immediately cancel the post request after receiving the content-length header with the large size. Is this not possible? Thank you!
1 replies
CDCloudflare Developers
Created by topsy5409 on 3/13/2023 in #workers-help
Restrict incoming and outgoing worker traffic
Hi, I know with service bindings I can call a worker internally/not over the internet, but is there any way I can restrict outgoing traffic for that worker as well? I’d like it lock it down so it can only talk to the other worker that it has a service binding with, and no access to the internet. Thanks!
2 replies