Comfy-Org/ComfyUI · error · Exception
Expected JSON response to validate into a Pydantic model, go
Error message
Expected JSON response to validate into a Pydantic model, got non-JSON (binary or text).
What it means
Error "Expected JSON response to validate into a Pydantic model, got non-JSON (binary or text)." thrown in Comfy-Org/ComfyUI.
Source
Thrown at comfy_api_nodes/util/client.py:164
final_label_on_success=final_label_on_success,
progress_origin_ts=progress_origin_ts,
monitor_progress=monitor_progress,
max_retries_on_rate_limit=max_retries_on_rate_limit,
is_rate_limited=is_rate_limited,
)
if not isinstance(raw, dict):
raise Exception("Expected JSON response to validate into a Pydantic model, got non-JSON (binary or text).")
return _validate_or_raise(response_model, raw)
View on GitHub (pinned to 1c6d8d45b3)
Solutions
- Retry the request; the endpoint returned a non-JSON response.
When it happens
Trigger: Thrown at comfy_api_nodes/util/client.py:164 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Comfy-Org/ComfyUI@1c6d8d45b3 (2026-08-14).
Data as JSON: /api/errors/2e61baadd1561888.
Report an issue: GitHub.