From 8d1ee2d8d5f6b6b015404dc44e49be37339f4d1b Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Mon, 15 May 2023 18:50:09 -0500 Subject: [PATCH] Update /prompt endpoint --- src/lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/api.ts b/src/lib/api.ts index 2ac50e7..c457de4 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -260,7 +260,7 @@ export default class ComfyAPI { }) .then(async (res) => { if (res.status != 200) { - throw await res.text() + throw await res.json() } return res.json() })