{"record":{"id":"b6ce0bdcbb576d06","repo":"Comfy-Org/ComfyUI","slug":"task-failed-json-dumps-resp-json","errorCode":null,"errorMessage":"Task failed: {json.dumps(resp_json)}","messagePattern":"Task failed: (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"comfy_api_nodes/util/client.py","lineNumber":433,"sourceCode":"                    extra_text=extra_text,\n                )\n                return resp_json\n\n            if status in failed_states:\n                msg = f\"Task failed: {json.dumps(resp_json)}\"\n                logging.error(msg)\n                raise Exception(msg)\n\n            try:\n                await sleep_with_interrupt(poll_interval, cls, None, None, None)","sourceCodeStart":415,"sourceCodeEnd":451,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy_api_nodes/util/client.py#L415-L451","documentation":"Error \"Task failed: {json.dumps(resp_json)}\" thrown in Comfy-Org/ComfyUI.","triggerScenarios":"Thrown at comfy_api_nodes/util/client.py:433 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the logged task failure payload and adjust the request."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1c6d8d45b3693bfbb32385b410d813a7fd6be216","analyzedAt":"2026-08-14T19:37:18.893Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}