Skip to content

[API Error: 400 <400> InternalError.Algo.InvalidParameter for every message #656

@AJ

Description

@AJ

What happened?

Any message/ request/prompt sent to Qwen code gives a API Error: 400. Every single one. This has been happening for the last 12-16 hours without any setting or config change by me. Started happening in the middle of a coding session
Exact error message:
✕ [API Error: 400 <400> InternalError.Algo.InvalidParameter: An assistant message with "tool_calls" must be followed by tool messages responding to each "tool_call_id". The following tool_call_ids did not have response messages: message[540].role]

What did you expect to happen?

The prompts are sent to the model and the model responds appropriately

Client information

Client Information

Run qwen to enter the interactive CLI, then run the /about command.

╭────────────╮
│  > /about  │
╰────────────╯


╭──────────────────────────────────────────────────────────────────────────────────╮
│                                                                                  │
│ About Qwen Code                                                                  │
│                                                                                  │
│ CLI Version                 0.0.11                                               │
│ Git Commit                  b01ddf0a                                             │
│ Model                       qwen3-coder-plus                                     │
│ Sandbox                     no sandbox                                           │
│ OS                          win32                                                │
│ Auth Method                 qwen-oauth                                           │
│                                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────╯

Login information

Auth

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    category/coreCore engine and logicpriority/P1High priority issuestatus/need-retestingIssue needs to be retested on the latest versiontype/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions