From 7ddb162b179158c576eb3bf3663581c86ce2bb7c Mon Sep 17 00:00:00 2001 From: Cody Roseborough Date: Mon, 8 Dec 2025 15:57:21 -0800 Subject: [PATCH] Always read datadog post response This avoids the worker logging potentially confusing messages around a stalled httpe response being cancelled to prevent deadlocks. --- src/api/datadog.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/datadog.ts b/src/api/datadog.ts index cb02876..5c012f1 100644 --- a/src/api/datadog.ts +++ b/src/api/datadog.ts @@ -57,6 +57,9 @@ export class DatadogApi { if (!response.ok) { const text = await response.text(); throw new Error(`Datadog API error (${response.status}): ${text}`); + } else { + // This way we can avoid worker logs about stalled http responses + await response.text(); } } }