Skip to content

Work constantly stops with "contents.parts must not be empty" #1585

@iandouglas

Description

@iandouglas

Describe the bug

I'm providing a detailed prompt to Goose to help build an app and set up some infrastructure, but Goose barely gets started before appearing to stop working. When I ask Goose to continue, I get an error that looks like this:

Ran into this error: Request failed: Request failed with status: 400 Bad Request. Message: * GenerateContentRequest.contents[7].parts: contents.parts must not be empty. .

To Reproduce
Steps to reproduce the behavior:

  1. Use Gemini Flash 2.0 or Flash 2.0 Exp
  2. Give it a bunch of instructions all at once
  3. See error

Expected behavior
It's odd that work would just "stop" and Goose returns to a prompt like it's waiting for something to do, and then to return this error.

Screenshots

Image

Please provide following information:

  • OS & Arch: This happens on Ubuntu Linux 22.04 using Goose CLI, and on MacOS using the Goose GUI
  • Interface: both, UI on Mac, and CLI o Linux
  • Version: v1.0.12
  • Extensions enabled: None to my knowledge
  • Provider & Model: Google Gemini, I've tried 2.0 Flash and 2.0 Flash-Exp

Additional context
The prompt file I'm providing to Goose lists instructions like "help me build a Python/FastAPI project with Alembic database migrations" where I give it a detailed list of parameters, and for the database I give it the database credentials and table names to make etc. but then it just ... stops working.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions