{"record":{"id":"3207894627bf46a8","repo":"Comfy-Org/ComfyUI","slug":"aspect-ratio-must-be-between-1-8-and-8-1-got-wid","errorCode":null,"errorMessage":"Aspect ratio must be between 1:8 and 8:1; got {width}x{height}.","messagePattern":"Aspect ratio must be between 1:8 and 8:1; got (.+?)x(.+?)\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"comfy_api_nodes/nodes_qwen.py","lineNumber":68,"sourceCode":"def _validate_size(width: int, height: int) -> None:\n    if not MIN_AREA <= width * height <= MAX_AREA:\n        raise ValueError(\n            f\"Image area must be between {MIN_AREA} (512x512) and {MAX_AREA} (2560x2560) pixels; \"\n            f\"got {width}x{height} = {width * height}.\"\n        )\n    if width > MAX_ASPECT * height or height > MAX_ASPECT * width:\n        raise ValueError(f\"Aspect ratio must be between 1:8 and 8:1; got {width}x{height}.\")\n\n\ndef _fit_to_size(width: int, height: int) -> tuple[int, int]:","sourceCodeStart":50,"sourceCodeEnd":86,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy_api_nodes/nodes_qwen.py#L50-L86","documentation":"Error \"Aspect ratio must be between 1:8 and 8:1; got {width}x{height}.\" thrown in Comfy-Org/ComfyUI.","triggerScenarios":"Thrown at comfy_api_nodes/nodes_qwen.py:68 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use an image with an aspect ratio between 1:8 and 8:1."],"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"}