Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR goose::agents::truncate: Error: Request failed: Request failed with status: 400 Bad Request #1359

Open
PrinceSajjadHussain opened this issue Feb 23, 2025 · 12 comments
Assignees
Labels
bug Something isn't working cli

Comments

@PrinceSajjadHussain
Copy link

        message=f"Evaluate this summary:                                                                                                                                                                                                 " + summary                                                                                                                                                                                                                                          )                                                                                                                                                                                                                                    evaluation = user_proxy.last_message()["content"]                                                                                                                                                                                                                                                                                                                                                                                                                                         print(f"Evaluation of summary: " + evaluation)                                                                                                                                                                                                                                                                                                                                                                                                                                            # Save the summary to a file                                                                                                                                                                                                                 with open("summary.txt", "w") as f:                                                                                                                                                                                                              f.write(summary)                                                                                                                                                                                                                                                                                                                                                                                                                                                                      print("Summary saved to summary.txt")                                                                                                                                                                                                        ```                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Let me know how you would like me to proceed with the file creation.                                                                                                                                                                                                                                                                                                                                                                                                                      ( O)> create a app.py code                                                                                                                                                                                                                   ◐  Honking thoughtfully...                                                                                                                                                                                                                                                                                                                                                                                                                                                                ( O)> create a app.py code                                                                                                                                                                                                                   ◐  Filtering function flows...                                                                                                                                                                                                                 2025-02-23T20:40:50.280729Z ERROR goose::agents::truncate: Error: Request failed: Request failed with status: 400 Bad Request. Message: * GenerateContentRequest.contents[23].parts: contents.parts must not be empty.                                                                                                                                                                                                                                                                      at crates/goose/src/agents/truncate.rs:279                                                                                                                                                                                                                                                                                                                                                                                                                                            Ran into this error: Request failed: Request failed with status: 400 Bad Request. Message: * GenerateContentRequest.contents[23].parts: contents.parts must not be empty.                                                                    .                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Please retry if you think this is a transient or recoverable error.                                                                                                                                                                                                                                                                                                                                                                                                                       ( O)> create a app.py code                                                                                                                                                                                                                   ◐  Waddling to conclusions...                                                                                                                                                                                                                  2025-02-23T20:41:56.236719Z ERROR goose::agents::truncate: Error: Request failed: Request failed with status: 400 Bad Request. Message: * GenerateContentRequest.contents[23].parts: contents.parts must not be empty.                                                                                                                                                                                                                                                                      at crates/goose/src/agents/truncate.rs:279                                                                                                                                                                                                                                                                                                                                                                                                                                            Ran into this error: Request failed: Request failed with status: 400 Bad Request. Message: * GenerateContentRequest.contents[23].parts: contents.parts must not be empty.                                                                    .                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Please retry if you think this is a transient or recoverable error.                                                                                                                                                                                                                                                                                                                                                                                                                       ( O)> create a app.py code                                                                                                                                                                                                                   ◐  Debugging reality...                                                                                                                                                                                                                        2025-02-23T20:44:03.662300Z ERROR goose::agents::truncate: Error: Request failed: Request failed with status: 400 Bad Request. Message: * GenerateContentRequest.contents[23].parts: contents.parts must not be empty.                                                                                                                                                                                                                                                                      at crates/goose/src/agents/truncate.rs:279                                                                                                                                                                                                                                                                                                                                                                                                                                            Ran into this error: Request failed: Request failed with status: 400 Bad Request. Message: * GenerateContentRequest.contents[23].parts: contents.parts must not be empty.                                                                    .                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Please retry if you think this is a transient or recoverable error.                                                                                                                                                                                                                                                                                                                                                                                                                       ( O)>                               

Image

@PrinceSajjadHussain
Copy link
Author

i need help in this for always goose session error and once i resume the same session
goose session --resume --name QPs9zlG1 it still give me that error where the session end
ERROR goose::agents::truncate: Error: Request failed: Request failed with status: 400 Bad Request. Message: * GenerateContentRequest.contents[23].parts: contents.parts must not be empty.

@yingjiehe-xyz
Copy link
Collaborator

@PrinceSajjadHussain can you share your log file following https://block.github.io/goose/docs/guides/logs? Which model and provider did you use?

@yingjiehe-xyz yingjiehe-xyz added bug Something isn't working cli labels Feb 24, 2025
@PrinceSajjadHussain
Copy link
Author

PrinceSajjadHussain commented Feb 24, 2025 via email

@yingjiehe-xyz
Copy link
Collaborator

@PrinceSajjadHussain can you share more detail, like gemini with openrouter/directly, which gemini model? or share the log file?

@PrinceSajjadHussain
Copy link
Author

PrinceSajjadHussain commented Feb 24, 2025 via email

@rubixhacker
Copy link

rubixhacker commented Feb 25, 2025

I am running into the same issue when using Gemini-2.0-flash (directly) and Jetbrains integration

Attached is the log file

r5nXjjHH.json

@yingjiehe-xyz
Copy link
Collaborator

@rubixhacker can you share your log file under ~/.local/state/goose/logs/cli/xxxx/xxxx-r5nXjjHH.log

@PrinceSajjadHussain
Copy link
Author

PrinceSajjadHussain commented Feb 26, 2025 via email

@yingjiehe-xyz
Copy link
Collaborator

@PrinceSajjadHussain do you mean using goose UI in windows?

@PrinceSajjadHussain
Copy link
Author

PrinceSajjadHussain commented Feb 26, 2025 via email

@yingjiehe-xyz
Copy link
Collaborator

right now, it is not supported, you can check detail here: #867

@PrinceSajjadHussain
Copy link
Author

PrinceSajjadHussain commented Feb 26, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli
Projects
None yet
Development

No branches or pull requests

3 participants