{"record":{"id":"bd751dda0b996c90","repo":"Comfy-Org/ComfyUI","slug":"a-maximum-of-3-reference-images-is-supported-got","errorCode":null,"errorMessage":"A maximum of 3 reference images is supported; got {len(reference_images)} (a batched input counts once per image).","messagePattern":"A maximum of 3 reference images is supported; got (.+?) \\(a batched input counts once per image\\)\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"comfy_api_nodes/nodes_qwen.py","lineNumber":396,"sourceCode":"        seed: int = 42,\n        prompt_extend: bool = True,\n        watermark: bool = False,\n    ):\n        validate_string(model[\"prompt\"], strip_whitespace=False, min_length=1)\n        reference_images = [image for key in model[\"images\"] for image in model[\"images\"][key]]\n        if len(reference_images) > 3:\n            raise ValueError(\n                f\"A maximum of 3 reference images is supported; got {len(reference_images)} \"\n                f\"(a batched input counts once per image).\"\n            )","sourceCodeStart":378,"sourceCodeEnd":414,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy_api_nodes/nodes_qwen.py#L378-L414","documentation":"Error \"A maximum of 3 reference images is supported; got {len(reference_images)} (a batched input counts once per image).\" thrown in Comfy-Org/ComfyUI.","triggerScenarios":"Thrown at comfy_api_nodes/nodes_qwen.py:396 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use at most 3 reference images."],"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-15T17:31:12.345Z"}