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() })