[GH-ISSUE #6676] Character Sheet generation fails to save / "Failed to fetch" when using avatar as reference #3737

Closed
opened 2026-10-21 06:06:39 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @scavru on GitHub (Sep 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6676

Originally assigned to: @SonaGat3 on GitHub.

Description:
The "Create Character Sheet" image generation feature is currently broken. While the image preview generates successfully, the final save process fails. Additionally, using the current avatar as a reference triggers a network error. This issue started occurring today.
Environment:
Project: Pasta-Devs/Marinara-Engine (AI frontend)
Feature: Character Sheet Generation / Image Generation
Steps to Reproduce:
Open the Character creation/editing menu.
Navigate to the Image Generation section (Create Character Sheet).
Scenario A: Check the Use current avatar as a reference checkbox and click generate.
Scenario B: Uncheck the Use current avatar as a reference checkbox and click generate.
Attempt to save the character / apply the generated images.
Expected Behavior:
The character sheet images should generate and be successfully uploaded to the character's gallery.
The character card should save without errors.
Using the current avatar as a reference should process the image and generate the sheet.
Actual Behavior:
Preview: Works fine, the image preview is displayed correctly.
Scenario A (Avatar as reference ON): Generation fails immediately with a Failed to fetch error.
Scenario B (Avatar as reference OFF): Generation proceeds and the preview works, but saving the character fails with the error: One character gallery image failed to upload.
Note: The main character avatar saves correctly, but the Character Sheet images do not.
Technical Context / Hints for Devs:
Failed to fetch when using the avatar as a reference might indicate a CORS issue, a backend timeout, or a crash in the image-processing pipeline (e.g., when trying to read/resize the base64 avatar).
One character gallery image failed to upload suggests that the frontend successfully generates the image blob, but the multipart/form-data payload sent to the backend during the character save endpoint (/api/characters/create or /edit) is either malformed, exceeds a payload size limit, or the backend route is failing to parse the gallery images.

Originally created by @scavru on GitHub (Sep 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6676 Originally assigned to: @SonaGat3 on GitHub. Description: The "Create Character Sheet" image generation feature is currently broken. While the image preview generates successfully, the final save process fails. Additionally, using the current avatar as a reference triggers a network error. This issue started occurring today. Environment: Project: Pasta-Devs/Marinara-Engine (AI frontend) Feature: Character Sheet Generation / Image Generation Steps to Reproduce: Open the Character creation/editing menu. Navigate to the Image Generation section (Create Character Sheet). Scenario A: Check the Use current avatar as a reference checkbox and click generate. Scenario B: Uncheck the Use current avatar as a reference checkbox and click generate. Attempt to save the character / apply the generated images. Expected Behavior: The character sheet images should generate and be successfully uploaded to the character's gallery. The character card should save without errors. Using the current avatar as a reference should process the image and generate the sheet. Actual Behavior: Preview: Works fine, the image preview is displayed correctly. Scenario A (Avatar as reference ON): Generation fails immediately with a Failed to fetch error. Scenario B (Avatar as reference OFF): Generation proceeds and the preview works, but saving the character fails with the error: One character gallery image failed to upload. Note: The main character avatar saves correctly, but the Character Sheet images do not. Technical Context / Hints for Devs: Failed to fetch when using the avatar as a reference might indicate a CORS issue, a backend timeout, or a crash in the image-processing pipeline (e.g., when trying to read/resize the base64 avatar). One character gallery image failed to upload suggests that the frontend successfully generates the image blob, but the multipart/form-data payload sent to the backend during the character save endpoint (/api/characters/create or /edit) is either malformed, exceeds a payload size limit, or the backend route is failing to parse the gallery images.
bsakaguchi 2026-10-21 06:06:39 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SonaGat3 commented on GitHub (Sep 25, 2026):

If you can, send the Marinara Diagnostics: Settings --> Advanced --> Copy Support Diagnostics
Also the type of image connection you are using(local, novelai, etc..)

<!-- gh-comment-id:5838120849 --> @SonaGat3 commented on GitHub (Sep 25, 2026): If you can, send the Marinara Diagnostics: Settings --> Advanced --> Copy Support Diagnostics Also the type of image connection you are using(local, novelai, etc..)
Author
Owner

@SonaGat3 commented on GitHub (Sep 25, 2026):

One more thing when you reproduce it, so we don't need another round trip: open the browser's Network tab (F12) and tell me which requests fail.

For the "Failed to fetch": whether the failing request is the avatar image itself or /api/characters/avatar-generation. Those are two different causes.

For the save: the entry for POST /api/characters//gallery/upload — status code and response body. The client replaces the server's reason with a generic count, so the real error only shows up there.

<!-- gh-comment-id:5838154936 --> @SonaGat3 commented on GitHub (Sep 25, 2026): One more thing when you reproduce it, so we don't need another round trip: open the browser's Network tab (F12) and tell me which requests fail. For the "Failed to fetch": whether the failing request is the avatar image itself or /api/characters/avatar-generation. Those are two different causes. For the save: the entry for POST /api/characters/<id>/gallery/upload — status code and response body. The client replaces the server's reason with a generic count, so the real error only shows up there.
Author
Owner

@scavru commented on GitHub (Sep 25, 2026):

Edge needed to be updated; it was throwing errors when prompted to update.

<!-- gh-comment-id:5838325639 --> @scavru commented on GitHub (Sep 25, 2026): Edge needed to be updated; it was throwing errors when prompted to update.
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#3737
No description provided.