neenhouse (chris)
neenhouse (chris)
CDCloudflare Developers
Created by neenhouse (chris) on 5/7/2025 in #workers-help
responseStreamDisconnected errors when making 6+ sub requests in worker
We are using ctx.waitUntil() API to make sub requests to send metrics/logs to DataDog, and when there are 6 or more requests, the request/response that is being returned is truncated. When looking at real-time worker logs, the outcome field is set to "outcome": "responseStreamDisconnected", . There are no other errors that are present. The format we are using to send metrics is ctx.waitUntil(async function() { return await fetch(...)});. The individual requests all function correctly, and I can reproduce this error by enabling any one of them, but if they are all enabled together, an error occured. We have the following wrangler.toml config:
compatibility_date = "2025-04-04"
compatibility_flags = [ "nodejs_compat" ]
compatibility_date = "2025-04-04"
compatibility_flags = [ "nodejs_compat" ]
and we're on "wrangler": "4.7.2".
We even disabled ctx.passThruOnException to see if we can surface an error, but nothing shows up.
12 replies
CDCloudflare Developers
Created by neenhouse (chris) on 10/15/2024 in #general-help
logpush + workers
I have a general question about logpush + workers. We are pushing standard access logs and worker logs to 2 separate buckets and hope to join them by rayID. I wanted to confirm for an incoming request that is processed by a worker and then sent as a sub request, should we expect to see 1 or 2 standard access log records for that request? (in addition to the worker log)
10 replies
CDCloudflare Developers
Created by neenhouse (chris) on 8/10/2023 in #workers-help
Does CF provide user agent parsing for device type for Workers?
From these docs https://developers.cloudflare.com/workers/runtime-apis/request/#incomingrequestcfproperties it doens't seem like CF will provide device type info "mobile" "tablet" or "desktop". From https://developers.cloudflare.com/automatic-platform-optimization/reference/cache-device-type/ CF does parse this info when you turn on caching. Is it possible to get access through the worker?
3 replies
CDCloudflare Developers
Created by neenhouse (chris) on 7/5/2023 in #workers-help
Deploying to ENV associated with multiple zone IDs
3 replies