Skip to content

[BUG] Kiro provider returns 400 "Improperly formed request" when used via Claude code #1242

Description

@hieunguyen4-sys

9Router lastest version

Installation Method

npm (global)

Operating System

Windows

OS Version

Windows 10 (Build 19045)

Node.js Version

24.10.0

Provider(s) Involved

Kiro

Model(s) Involved

  • kiro/claude-sonnet-4.5-thinking-agentic
  • [Add other Kiro models you tested if applicable]

CLI Tool

  • Claude code

Description

When using the Kiro provider, 9Router returns a 400 error with the message "Improperly formed request". The error occurs specifically when making requests to the kiro/claude-sonnet-4.5-thinking-agentic.

Steps to Reproduce

  1. Configure 9router with Kiro provider credentials
  2. Configure the claude code to use Kiro provider with model kiro/claude-sonnet-4.5-thinking-agentic
  3. Observe the 400 error in the logs when the agent attempts to call the LLM
  4. Error message: API Error: 400 [kiro/claude-sonnet-4.5-thinking-agentic] [400]: {"message":"Improperly formed request.","reason":null} (reset after 2m)
Image

Expected Behavior

The agent should successfully make requests to the Kiro provider through 9router, with the request being properly formatted and accepted by the Kiro API. The LLM should process the conversation turn and return a valid response.

Actual Behavior

9router returns HTTP 400 error with "Improperly formed request" message.

Error Logs / Output

API Error: 400 [kiro/claude-sonnet-4.5-thinking-agentic] [400]: {"message":"Improperly formed request.","reason":null} (reset after 2m)
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions