diff --git a/template/bigbot/src/rest/mod.ts b/template/bigbot/src/rest/mod.ts index 425153a30..08f9d8456 100644 --- a/template/bigbot/src/rest/mod.ts +++ b/template/bigbot/src/rest/mod.ts @@ -42,7 +42,7 @@ async function handleRequest(conn: Deno.Conn) { ); } - const json = (await requestEvent.request.json()); + const json = requestEvent.request.body ? (await requestEvent.request.json()) : undefined; try { const result = await rest.runMethod(