[GH-ISSUE #600] [Issue]: GoogleProvider throws TypeError during scene summary wrap-up #278

Closed
opened 2026-10-20 17:27:05 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @cha1latte on GitHub (May 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/600

Originally assigned to: @cha1latte on GitHub.

Summary

Scene summary generation fails at the end of a scene when using GoogleProvider, returning a 502 and a backend TypeError.

Expected behavior

The scene summary should generate successfully and return the user to conversation mode.

Actual behavior

The front end reports a 502 error and the backend logs Cannot read properties of undefined (reading '0') from GoogleProvider.chat.

Steps to reproduce

  1. Start a scene from conversation mode.
  2. Play through the scene.
  3. Click "end scene" and choose "yes" when asked to summarize.

Environment

  • Marinara Engine version: 1.5.8
  • Install type: Docker (lite container)
  • OS + version: Linux
  • Browser or app shell: Not specified

Logs, screenshots, or video

TypeError: Cannot read properties of undefined (reading '0')
 at GoogleProvider.chat (file:///app/packages/server/dist/services/llm/providers/google.provider.js:113:42)
 at async GoogleProvider.chatComplete (file:///app/packages/server/dist/services/llm/base-provider.js:368:22)
 at async Object.<anonymous> (file:///app/packages/server/dist/routes/scene.routes.js:351:22)

Additional context

The reporter saw this with gemma-4-31b-it, and also mentioned it occurs with other GoogleProvider models such as 26B and Flash.

Source: https://discord.com/channels/1417099416812392641/1502416598433005609

Originally created by @cha1latte on GitHub (May 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/600 Originally assigned to: @cha1latte on GitHub. ## Summary Scene summary generation fails at the end of a scene when using GoogleProvider, returning a 502 and a backend TypeError. ## Expected behavior The scene summary should generate successfully and return the user to conversation mode. ## Actual behavior The front end reports a 502 error and the backend logs `Cannot read properties of undefined (reading '0')` from `GoogleProvider.chat`. ## Steps to reproduce 1. Start a scene from conversation mode. 2. Play through the scene. 3. Click "end scene" and choose "yes" when asked to summarize. ## Environment - Marinara Engine version: 1.5.8 - Install type: Docker (lite container) - OS + version: Linux - Browser or app shell: Not specified ## Logs, screenshots, or video ```text TypeError: Cannot read properties of undefined (reading '0') at GoogleProvider.chat (file:///app/packages/server/dist/services/llm/providers/google.provider.js:113:42) at async GoogleProvider.chatComplete (file:///app/packages/server/dist/services/llm/base-provider.js:368:22) at async Object.<anonymous> (file:///app/packages/server/dist/routes/scene.routes.js:351:22) ``` ## Additional context The reporter saw this with `gemma-4-31b-it`, and also mentioned it occurs with other GoogleProvider models such as 26B and Flash. Source: https://discord.com/channels/1417099416812392641/1502416598433005609
bsakaguchi 2026-10-20 17:27:05 +07:00
  • closed this issue
  • added the
    bug
    label
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#278
No description provided.