[GH-ISSUE #7526] [Issue]: ComfyUI image output rejected by 30 MiB response limit #4190

Closed
opened 2026-10-21 06:12:15 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7526

Originally assigned to: @Gunterlie on GitHub.

Summary

ComfyUI image generation fails when the returned output exceeds 31,457,280 bytes (30 MiB). The reported output contains metadata with many Base64-encoded reference images.

Expected behavior

Marinara Engine should accept large ComfyUI image outputs or clearly expose the response-size restriction and how to address it.

Actual behavior

The primary image generation fails with "Outbound response exceeded 31457280 bytes". The server logs an illustrator fallback attempt using another connection; the final outcome is not provided.

Steps to reproduce

  1. Use ComfyUI for image generation with metadata enabled (without --no-metadata) and many Base64-encoded reference images.
  2. Generate an output exceeding 31,457,280 bytes. The reported failure occurred through /api/generate/retry-agents; exact UI actions and workflow were not provided.
  3. Observe the response-size error and primary image generation failure.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Server log: level 40; route /api/generate/retry-agents; requestId 36efca77-d9c6-40f9-b799-68361e6c1554. Error: "Outbound response exceeded 31457280 bytes". Stack: readCappedResponse (packages/server/dist/utils/security.js:347:23) → generateComfyUI (services/image/image-generation.js:2953:37) → withConnectionAdmission (services/generation/connection-admission.js:148:24) → generateImageUncapped (services/image/image-generation.js:249:31) → runMediaGenerationRequest (services/image/image-generation-queue.js:212:20 and :237:20) → generateIllustratorImageVariants (services/image/illustrator-image-variants.js:8:26) → applyRetryResultEffects (routes/generate/retry-agents-route.js:2976:46) → Object. (routes/generate/retry-agents-route.js:4256:13). Log message: "[illustrator-fallback] Primary image generation failed; retrying with connection ()". No screenshots or video provided.

Additional context

The reporter attributes the large output to retained ComfyUI metadata containing many Base64-encoded reference images and states that --no-metadata was not enabled. No test with metadata disabled or Support Diagnostic was provided. The logged hostname is "pop-os", but the OS and version were not explicitly stated.

Discord thread: 31457280 Bytes File Limit On Image Generation
Discord thread link: https://discord.com/channels/1417099416812392641/1559574974014951464
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)

Discord thread transcript (7 messages)
[2026-10-13T14:34:09.307Z] RadaSTL: I have encountered a 30MB limit on image genration output return for ComfyUI.

I am leaving the stack below:

` ` `
{
  "level": 40,
  "time": 1791899448799,
  "pid": 37002,
  "hostname": "pop-os",
  "bootId": "4f5f7100",
  "requestId": "36efca77-d9c6-40f9-b799-68361e6c1554",
  "route": "/api/generate/retry-agents",
  "err": {
    "type": "Error",
    "message": "Outbound response exceeded 31457280 bytes",
    "stack": "Error: Outbound response exceeded 31457280 bytes
                at readCappedResponse (file:///<REDACTED>/Marinara-Engine/packages/server/dist/utils/security.js:347:23)
                at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
                at async generateComfyUI (file:///<REDACTED>/Marinara-Engine/packages/server/dist/services/image/image-generation.js:2953:37)
                at async withConnectionAdmission (file:///<REDACTED>/Marinara-Engine/packages/server/dist/services/generation/connection-admission.js:148:24)
                at async generateImageUncapped (file:///<REDACTED>/Marinara-Engine/packages/server/dist/services/image/image-generation.js:249:31)
                at async runMediaGenerationRequest (file:///<REDACTED>/Marinara-Engine/packages/server/dist/services/image/image-generation-queue.js:212:20)
                at async runMediaGenerationRequest (file:///<REDACTED>/Marinara-Engine/packages/server/dist/services/image/image-generation-queue.js:237:20)
                at async generateIllustratorImageVariants (file:///<REDACTED>/Marinara-Engine/packages/server/dist/services/image/illustrator-image-variants.js:8:26)
                at async applyRetryResultEffects (file:///<REDACTED>/Marinara-Engine/packages/server/dist/routes/generate/retry-agents-route.js:2976:46)
                at async Object.<anonymous> (file:///<REDACTED>/Marinara-Engine/packages/server/dist/routes/generate/retry-agents-route.js:4256:13)"
  },
  "msg": "[illustrator-fallback] Primary image generation failed; retrying with connection <REDACTED> (<REDACTED>)"
}
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559574974014951464]

[2026-10-13T14:34:10.028Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559574977039175862]

[2026-10-13T14:38:37.205Z] gunterlie: … why in gods earthly plane do you have images that are over 30mb?
[Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559576097660739636]

[2026-10-13T14:38:55.476Z] RadaSTL: Because I am too lazy to add --no-metadata to my comfyui
[Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559576174294859897]

[2026-10-13T14:38:58.388Z] RadaSTL: 🙃
[Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559576186508546099]

[2026-10-13T14:39:17.375Z] RadaSTL: And yeah, whole lotta reference images in Base64
[Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559576266145927219]

[2026-10-13T14:40:01.337Z] Marinara: :SkillIssueMari:
[Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559576450535915611]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 13, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7526 Originally assigned to: @Gunterlie on GitHub. ## Summary ComfyUI image generation fails when the returned output exceeds 31,457,280 bytes (30 MiB). The reported output contains metadata with many Base64-encoded reference images. ## Expected behavior Marinara Engine should accept large ComfyUI image outputs or clearly expose the response-size restriction and how to address it. ## Actual behavior The primary image generation fails with "Outbound response exceeded 31457280 bytes". The server logs an illustrator fallback attempt using another connection; the final outcome is not provided. ## Steps to reproduce 1. Use ComfyUI for image generation with metadata enabled (without --no-metadata) and many Base64-encoded reference images. 2. Generate an output exceeding 31,457,280 bytes. The reported failure occurred through /api/generate/retry-agents; exact UI actions and workflow were not provided. 3. Observe the response-size error and primary image generation failure. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Server log: level 40; route /api/generate/retry-agents; requestId 36efca77-d9c6-40f9-b799-68361e6c1554. Error: "Outbound response exceeded 31457280 bytes". Stack: readCappedResponse (packages/server/dist/utils/security.js:347:23) → generateComfyUI (services/image/image-generation.js:2953:37) → withConnectionAdmission (services/generation/connection-admission.js:148:24) → generateImageUncapped (services/image/image-generation.js:249:31) → runMediaGenerationRequest (services/image/image-generation-queue.js:212:20 and :237:20) → generateIllustratorImageVariants (services/image/illustrator-image-variants.js:8:26) → applyRetryResultEffects (routes/generate/retry-agents-route.js:2976:46) → Object.<anonymous> (routes/generate/retry-agents-route.js:4256:13). Log message: "[illustrator-fallback] Primary image generation failed; retrying with connection <REDACTED> (<REDACTED>)". No screenshots or video provided. ## Additional context The reporter attributes the large output to retained ComfyUI metadata containing many Base64-encoded reference images and states that --no-metadata was not enabled. No test with metadata disabled or Support Diagnostic was provided. The logged hostname is "pop-os", but the OS and version were not explicitly stated. Discord thread: 31457280 Bytes File Limit On Image Generation Discord thread link: https://discord.com/channels/1417099416812392641/1559574974014951464 Requested by: gunterlie (gunterlie, Discord ID 282074442962829312) <details> <summary>Discord thread transcript (7 messages)</summary> ```text [2026-10-13T14:34:09.307Z] RadaSTL: I have encountered a 30MB limit on image genration output return for ComfyUI. I am leaving the stack below: ` ` ` { "level": 40, "time": 1791899448799, "pid": 37002, "hostname": "pop-os", "bootId": "4f5f7100", "requestId": "36efca77-d9c6-40f9-b799-68361e6c1554", "route": "/api/generate/retry-agents", "err": { "type": "Error", "message": "Outbound response exceeded 31457280 bytes", "stack": "Error: Outbound response exceeded 31457280 bytes at readCappedResponse (file:///<REDACTED>/Marinara-Engine/packages/server/dist/utils/security.js:347:23) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async generateComfyUI (file:///<REDACTED>/Marinara-Engine/packages/server/dist/services/image/image-generation.js:2953:37) at async withConnectionAdmission (file:///<REDACTED>/Marinara-Engine/packages/server/dist/services/generation/connection-admission.js:148:24) at async generateImageUncapped (file:///<REDACTED>/Marinara-Engine/packages/server/dist/services/image/image-generation.js:249:31) at async runMediaGenerationRequest (file:///<REDACTED>/Marinara-Engine/packages/server/dist/services/image/image-generation-queue.js:212:20) at async runMediaGenerationRequest (file:///<REDACTED>/Marinara-Engine/packages/server/dist/services/image/image-generation-queue.js:237:20) at async generateIllustratorImageVariants (file:///<REDACTED>/Marinara-Engine/packages/server/dist/services/image/illustrator-image-variants.js:8:26) at async applyRetryResultEffects (file:///<REDACTED>/Marinara-Engine/packages/server/dist/routes/generate/retry-agents-route.js:2976:46) at async Object.<anonymous> (file:///<REDACTED>/Marinara-Engine/packages/server/dist/routes/generate/retry-agents-route.js:4256:13)" }, "msg": "[illustrator-fallback] Primary image generation failed; retrying with connection <REDACTED> (<REDACTED>)" } ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559574974014951464] [2026-10-13T14:34:10.028Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559574977039175862] [2026-10-13T14:38:37.205Z] gunterlie: … why in gods earthly plane do you have images that are over 30mb? [Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559576097660739636] [2026-10-13T14:38:55.476Z] RadaSTL: Because I am too lazy to add --no-metadata to my comfyui [Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559576174294859897] [2026-10-13T14:38:58.388Z] RadaSTL: 🙃 [Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559576186508546099] [2026-10-13T14:39:17.375Z] RadaSTL: And yeah, whole lotta reference images in Base64 [Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559576266145927219] [2026-10-13T14:40:01.337Z] Marinara: :SkillIssueMari: [Discord message: https://discord.com/channels/1417099416812392641/1559574974014951464/1559576450535915611] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:12:15 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4190
No description provided.