Hello! In our Cloudflare workers, we’ve been finding that a non-
fetch() isn’t always sending the promised request before the worker’s returned Response.
Following this Debugging Tips example I monkey-patched
console.log() to send its arguments to a server, but servers are only receiving the POST request some of the time.
Here’s a Cloudflare worker test case:
curl or similar to test outside of Cloudflare’s UI:
curl -i https://example.com/worker
In my trials, the POST request is received 100% of the time when the worker is tested via the Cloudflare Workers UI, but it’s quite inconsistent when tested from
curl or similar. The worker always responds to the route as expected, but the POST request doesn’t always get sent.
Can you reproduce?