From 27573d1ce3a81026f193a548078b4221e51da62d Mon Sep 17 00:00:00 2001 From: Addison LeClair Date: Sat, 17 Oct 2026 20:26:33 -0700 Subject: [PATCH] fix: send empty json body with internal cron requests --- apps/cron/src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/cron/src/index.ts b/apps/cron/src/index.ts index 80a6c4ad..0f268c82 100644 --- a/apps/cron/src/index.ts +++ b/apps/cron/src/index.ts @@ -10,7 +10,11 @@ const IPAM_RECONCILE_PATH = '/api/internal/ipam/reconcile'; async function runInternalCronRoute(env: Env, path: string, label: string): Promise { const response = await env.DASHBOARD.fetch(`https://dashboard.internal${path}`, { method: 'POST', - headers: { authorization: `Bearer ${env.INTERNAL_CRON_SECRET}` } + headers: { + authorization: `Bearer ${env.INTERNAL_CRON_SECRET}`, + 'content-type': 'application/json' + }, + body: '{}' }); const body = await response.text();