goose icon indicating copy to clipboard operation
goose copied to clipboard

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

Open PrinceSajjadHussain opened this issue 11 months ago • 13 comments

        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 avatar Feb 23 '25 20:02 PrinceSajjadHussain

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.

PrinceSajjadHussain avatar Feb 23 '25 20:02 PrinceSajjadHussain

@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 avatar Feb 24 '25 16:02 yingjiehe-xyz

I use gemini model

On Mon., 24 Feb. 2025, 21:52 Yingjie He, @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/block/goose/issues/1359#issuecomment-2679072634, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZBBESJY3J6PSIW4BZX3ZL2RNE53AVCNFSM6AAAAABXWVNRLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZZGA3TENRTGQ . You are receiving this because you were mentioned.Message ID: @.***> [image: yingjiehe-xyz]yingjiehe-xyz left a comment (block/goose#1359) https://github.com/block/goose/issues/1359#issuecomment-2679072634

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

— Reply to this email directly, view it on GitHub https://github.com/block/goose/issues/1359#issuecomment-2679072634, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZBBESJY3J6PSIW4BZX3ZL2RNE53AVCNFSM6AAAAABXWVNRLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZZGA3TENRTGQ . You are receiving this because you were mentioned.Message ID: @.***>

PrinceSajjadHussain avatar Feb 24 '25 17:02 PrinceSajjadHussain

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

yingjiehe-xyz avatar Feb 24 '25 17:02 yingjiehe-xyz

Gemini-2.0-flash

On Mon., 24 Feb. 2025, 22:59 Yingjie He, @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/block/goose/issues/1359#issuecomment-2679246434, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZBBEWQ62QK3K6X5HHMUUT2RNMY7AVCNFSM6AAAAABXWVNRLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZZGI2DMNBTGQ . You are receiving this because you were mentioned.Message ID: @.***> [image: yingjiehe-xyz]yingjiehe-xyz left a comment (block/goose#1359) https://github.com/block/goose/issues/1359#issuecomment-2679246434

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

— Reply to this email directly, view it on GitHub https://github.com/block/goose/issues/1359#issuecomment-2679246434, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZBBEWQ62QK3K6X5HHMUUT2RNMY7AVCNFSM6AAAAABXWVNRLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZZGI2DMNBTGQ . You are receiving this because you were mentioned.Message ID: @.***>

PrinceSajjadHussain avatar Feb 24 '25 18:02 PrinceSajjadHussain

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

Attached is the log file

r5nXjjHH.json

rubixhacker avatar Feb 25 '25 01:02 rubixhacker

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

yingjiehe-xyz avatar Feb 26 '25 17:02 yingjiehe-xyz

Their is any way to see the ui for goose in windows

On Wed., 26 Feb. 2025, 22:57 Yingjie He, @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/block/goose/issues/1359#issuecomment-2685798008, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZBBEU5XYSNFUHEPVX2ELT2RX6A3AVCNFSM6AAAAABXWVNRLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBVG44TQMBQHA . You are receiving this because you were mentioned.Message ID: @.***> [image: yingjiehe-xyz]yingjiehe-xyz left a comment (block/goose#1359) https://github.com/block/goose/issues/1359#issuecomment-2685798008

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

— Reply to this email directly, view it on GitHub https://github.com/block/goose/issues/1359#issuecomment-2685798008, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZBBEU5XYSNFUHEPVX2ELT2RX6A3AVCNFSM6AAAAABXWVNRLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBVG44TQMBQHA . You are receiving this because you were mentioned.Message ID: @.***>

PrinceSajjadHussain avatar Feb 26 '25 17:02 PrinceSajjadHussain

@PrinceSajjadHussain do you mean using goose UI in windows?

yingjiehe-xyz avatar Feb 26 '25 18:02 yingjiehe-xyz

Yeah as we use on mac

On Wed., 26 Feb. 2025, 23:14 Yingjie He, @.***> wrote:

@PrinceSajjadHussain https://github.com/PrinceSajjadHussain do you mean using goose UI in windows?

— Reply to this email directly, view it on GitHub https://github.com/block/goose/issues/1359#issuecomment-2685832818, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZBBERMWFL6OP6RNZUDE7D2RX76VAVCNFSM6AAAAABXWVNRLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBVHAZTEOBRHA . You are receiving this because you were mentioned.Message ID: @.***> [image: yingjiehe-xyz]yingjiehe-xyz left a comment (block/goose#1359) https://github.com/block/goose/issues/1359#issuecomment-2685832818

@PrinceSajjadHussain https://github.com/PrinceSajjadHussain do you mean using goose UI in windows?

— Reply to this email directly, view it on GitHub https://github.com/block/goose/issues/1359#issuecomment-2685832818, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZBBERMWFL6OP6RNZUDE7D2RX76VAVCNFSM6AAAAABXWVNRLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBVHAZTEOBRHA . You are receiving this because you were mentioned.Message ID: @.***>

PrinceSajjadHussain avatar Feb 26 '25 18:02 PrinceSajjadHussain

right now, it is not supported, you can check detail here: https://github.com/block/goose/discussions/867

yingjiehe-xyz avatar Feb 26 '25 18:02 yingjiehe-xyz

Any alternative for this with ui as goose ai works

On Wed., 26 Feb. 2025, 23:18 Yingjie He, @.***> wrote:

right now, it is not supported, you can check detail here: #867 https://github.com/block/goose/discussions/867

— Reply to this email directly, view it on GitHub https://github.com/block/goose/issues/1359#issuecomment-2685841007, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZBBESTPGERLQ63TGMAZEL2RYANXAVCNFSM6AAAAABXWVNRLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBVHA2DCMBQG4 . You are receiving this because you were mentioned.Message ID: @.***> [image: yingjiehe-xyz]yingjiehe-xyz left a comment (block/goose#1359) https://github.com/block/goose/issues/1359#issuecomment-2685841007

right now, it is not supported, you can check detail here: #867 https://github.com/block/goose/discussions/867

— Reply to this email directly, view it on GitHub https://github.com/block/goose/issues/1359#issuecomment-2685841007, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZBBESTPGERLQ63TGMAZEL2RYANXAVCNFSM6AAAAABXWVNRLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBVHA2DCMBQG4 . You are receiving this because you were mentioned.Message ID: @.***>

PrinceSajjadHussain avatar Feb 26 '25 18:02 PrinceSajjadHussain

@yingjiehe-xyz here you go:

goose-session.log

mcp-jetbrains.log

rubixhacker avatar Feb 26 '25 20:02 rubixhacker

btw i am getting the same error (I also use gemini) with any extension through the goose UI and CLI. It feels very random tbh and i haven't identified any patterns as of yet

giorgosdi avatar Mar 17 '25 18:03 giorgosdi

Also getting errors here with using gemini 2.0

drew-szns avatar Jun 23 '25 17:06 drew-szns