Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Unable to submit request because it has an empty text parameter. Add a value to the parameter and try again. #697 #727

Open

Description

@Captainnik53

Description of the bug:

Getting this issue again, can you please have a quick look?

#697

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

Activity

  1. MarkDaoust commented on Apr 10, 2025

    @MarkDaoust
    Collaborator

    @hkt74 - you solved #697, do you know what's going on here?

  2. hkt74 commented on Apr 28, 2025

    @hkt74

    Hi @Captainnik53

    To help us investigate the issue, Could you confirm if you getting this error from Vertex client or Gemini API client? I notice the error is from Vertex client, while Gemini API returns success.

    As far as I known, model wouldn't return meaningful response when sending empty text request, Could you share about your use case here? and want to explore if it is possible to make the change on the client side to filter out empty text request. thanks!

  3. utkarsh-alpuria commented on May 12, 2025

    @utkarsh-alpuria

    Hi @Captainnik53

    To help us investigate the issue, Could you confirm if you getting this error from Vertex client or Gemini API client? I notice the error is from Vertex client, while Gemini API returns success.

    As far as I known, model wouldn't return meaningful response when sending empty text request, Could you share about your use case here? and want to explore if it is possible to make the change on the client side to filter out empty text request. thanks!

    We are using the Gemini API Client, specifically the [Gemini 2.0 Flash model](https://ai.google.dev/gemini-api/docs/models#gemini-2.0-flash).

    It appears that in a chat session, if a function call fails and results in a malformed function call, the model subsequently stops responding to any further queries in that same session. Instead, it returns the following error:

    Invalid argument provided to Gemini: 400 Unable to submit request because it has an empty text parameter. Add a value to the parameter and try again. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini
    

    This behavior seems consistent once the malformed call occurs, effectively halting further interaction in the current session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

component:python sdkIssue/PR related to Python SDKp2status:triagedIssue/PR triaged to the corresponding sub-teamtype:bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions