This commit is contained in:
BennyKok 2023-12-15 20:12:36 +08:00
parent 708fc02c44
commit a484bb91fd

View File

@ -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");