From a484bb91fd5a6c877f6888c537dfe9c4aa9c6752 Mon Sep 17 00:00:00 2001 From: BennyKok Date: Fri, 15 Dec 2023 20:12:36 +0800 Subject: [PATCH] fix --- web/src/server/createRun.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/server/createRun.ts b/web/src/server/createRun.ts index 81bc2ae..5de52fa 100644 --- a/web/src/server/createRun.ts +++ b/web/src/server/createRun.ts @@ -75,7 +75,11 @@ export async function createRun( body: bodyJson, cache: "no-store", }) - .then((res) => res.text()) + .then(async (res) => { + const text = await res.text(); + console.log(text); + return text; + }) .then(async (res) => ComfyAPI_Run.parseAsync(JSON.parse(res))) .catch((err) => { console.log("Some went wrong in parsing the response");