{"record":{"id":"2da4202aad68c6a9","repo":"Comfy-Org/ComfyUI","slug":"total-size-of-all-images-exceeds-5-mb-limit","errorCode":null,"errorMessage":"Total size of all images exceeds 5 MB limit.","messagePattern":"Total size of all images exceeds 5 MB limit\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"comfy_api_nodes/nodes_recraft.py","lineNumber":381,"sourceCode":"        files = []\n        total_size = 0\n        max_total_size = 5 * 1024 * 1024  # 5 MB limit\n        for i, img in enumerate(list(images.values())):\n            file_bytes = tensor_to_bytesio(img, total_pixels=2048 * 2048, mime_type=\"image/webp\").read()\n            total_size += len(file_bytes)\n            if total_size > max_total_size:\n                raise Exception(\"Total size of all images exceeds 5 MB limit.\")\n            files.append((f\"file{i + 1}\", file_bytes))\n\n        response = await sync_op(","sourceCodeStart":363,"sourceCodeEnd":399,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy_api_nodes/nodes_recraft.py#L363-L399","documentation":"Error \"Total size of all images exceeds 5 MB limit.\" thrown in Comfy-Org/ComfyUI.","triggerScenarios":"Thrown at comfy_api_nodes/nodes_recraft.py:381 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reduce the number or size of images so the total is under 5 MB."],"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"}