Comfy-Org/ComfyUI · error · ValueError
Either text_style_prompt or image_style is required
Error message
Either text_style_prompt or image_style is required
What it means
Error "Either text_style_prompt or image_style is required" thrown in Comfy-Org/ComfyUI.
Source
Thrown at comfy_api_nodes/nodes_meshy.py:783
pbr: bool,
text_style_prompt: str,
image_style: Input.Image | None = None,
) -> IO.NodeOutput:
if text_style_prompt and image_style is not None:
raise ValueError("text_style_prompt and image_style cannot be used at the same time")
if not text_style_prompt and image_style is None:
raise ValueError("Either text_style_prompt or image_style is required")
image_style_url = None
if image_style is not None:
image_style_url = (await upload_images_to_comfyapi(cls, image_style, wait_label="Uploading style"))[0]View on GitHub (pinned to 1c6d8d45b3)
Solutions
- Provide either text_style_prompt or image_style.
When it happens
Trigger: Thrown at comfy_api_nodes/nodes_meshy.py:783 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/b5298fe51278fadd.
Report an issue: GitHub.