mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6676] Character Sheet generation fails to save / "Failed to fetch" when using avatar as reference #3737
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3737
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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..)
@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.
@scavru commented on GitHub (Sep 25, 2026):
Edge needed to be updated; it was throwing errors when prompted to update.