[GH-ISSUE #5415] [Issue]: Local ComfyUI video response exceeds 2 MiB limit #3000

Closed
opened 2026-10-21 05:58:43 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Local ComfyUI image-to-video generation fails when the engine receives the generated video because the outbound response exceeds 2,097,152 bytes. The base64 image-to-video step itself was reported to work flawlessly.

Expected behavior

The generated video should be received and returned successfully by Marinara Engine.

Actual behavior

Video generation fails when the response exceeds the 2,097,152-byte limit, producing an "Outbound response exceeded 2097152 bytes" error.

Steps to reproduce

  1. Switch to the UAT branch.
  2. Use Local ComfyUI video generation with a base64 image-to-video request.
  3. Wait for Marinara Engine to receive the generated video.
  4. Observe that generation fails when the outbound response exceeds 2,097,152 bytes.

Environment

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

Logs, screenshots, or video

Error: "Outbound response exceeded 2097152 bytes" at readCappedResponse (packages/server/dist/utils/security.js:346:23), called by generateComfyUiVideo (packages/server/dist/services/video/video-generation.js:528:33). Route log: "[gallery/generate-scene-video] Scene video generation failed for chat ggEMOgAgklHWjQ1L5qyOD". No screenshots or video attachments were provided.

Additional context

The issue was reported while testing the UAT branch with Local ComfyUI. No Support Diagnostic was included in the Discord context.

Discord thread: 2097152 bytes stack limit
Discord thread link: https://discord.com/channels/1417099416812392641/1540837017229856889
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-08-22T21:36:12.275Z] RadaSTL: I switch to UAT branch to see if the base64 image to video works for Local ComfyUI video generation, it does work fawlessly! 

However when recieving the video, engine hits the byte limit on stack. Leaving the error below:

{"level":40,"time":1787434407217,"pid":83877,"hostname":"pop-os","err":{"type":"Error","message":"Outbound response exceeded 2097152 bytes","stack":"Error: Outbound response exceeded 2097152 bytes\n    at readCappedResponse (file:///home/Marinara-Engine/packages/server/dist/utils/security.js:346:23)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async generateComfyUiVideo (file:///home/Marinara-Engine/packages/server/dist/services/video/video-generation.js:528:33)\n    at async generateVideoUnqueued (file:///home/Marinara-Engine/packages/server/dist/services/video/video-generation.js:84:20)\n    at async runMediaGenerationRequest (file:///home/Marinara-Engine/packages/server/dist/services/image/image-generation-queue.js:237:20)\n    at async Object.<anonymous> (file:///home/Marinara-Engine/packages/server/dist/routes/gallery.routes.js:931:31)"},"msg":"[gallery/generate-scene-video] Scene video generation failed for chat ggEMOgAgklHWjQ1L5qyOD"}
[Discord message: https://discord.com/channels/1417099416812392641/1540837017229856889/1540837017229856889]

[2026-08-22T21:36:12.841Z] 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/1540837017229856889/1540837019603836958]

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 (Aug 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5415 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Local ComfyUI image-to-video generation fails when the engine receives the generated video because the outbound response exceeds 2,097,152 bytes. The base64 image-to-video step itself was reported to work flawlessly. ## Expected behavior The generated video should be received and returned successfully by Marinara Engine. ## Actual behavior Video generation fails when the response exceeds the 2,097,152-byte limit, producing an "Outbound response exceeded 2097152 bytes" error. ## Steps to reproduce 1. Switch to the UAT branch. 2. Use Local ComfyUI video generation with a base64 image-to-video request. 3. Wait for Marinara Engine to receive the generated video. 4. Observe that generation fails when the outbound response exceeds 2,097,152 bytes. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Error: "Outbound response exceeded 2097152 bytes" at readCappedResponse (packages/server/dist/utils/security.js:346:23), called by generateComfyUiVideo (packages/server/dist/services/video/video-generation.js:528:33). Route log: "[gallery/generate-scene-video] Scene video generation failed for chat ggEMOgAgklHWjQ1L5qyOD". No screenshots or video attachments were provided. ## Additional context The issue was reported while testing the UAT branch with Local ComfyUI. No Support Diagnostic was included in the Discord context. Discord thread: 2097152 bytes stack limit Discord thread link: https://discord.com/channels/1417099416812392641/1540837017229856889 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-08-22T21:36:12.275Z] RadaSTL: I switch to UAT branch to see if the base64 image to video works for Local ComfyUI video generation, it does work fawlessly! However when recieving the video, engine hits the byte limit on stack. Leaving the error below: {"level":40,"time":1787434407217,"pid":83877,"hostname":"pop-os","err":{"type":"Error","message":"Outbound response exceeded 2097152 bytes","stack":"Error: Outbound response exceeded 2097152 bytes\n at readCappedResponse (file:///home/Marinara-Engine/packages/server/dist/utils/security.js:346:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async generateComfyUiVideo (file:///home/Marinara-Engine/packages/server/dist/services/video/video-generation.js:528:33)\n at async generateVideoUnqueued (file:///home/Marinara-Engine/packages/server/dist/services/video/video-generation.js:84:20)\n at async runMediaGenerationRequest (file:///home/Marinara-Engine/packages/server/dist/services/image/image-generation-queue.js:237:20)\n at async Object.<anonymous> (file:///home/Marinara-Engine/packages/server/dist/routes/gallery.routes.js:931:31)"},"msg":"[gallery/generate-scene-video] Scene video generation failed for chat ggEMOgAgklHWjQ1L5qyOD"} [Discord message: https://discord.com/channels/1417099416812392641/1540837017229856889/1540837017229856889] [2026-08-22T21:36:12.841Z] 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/1540837017229856889/1540837019603836958] ``` </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 05:58:43 +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#3000
No description provided.