[GH-ISSUE #64] BUG: API error calling from codex App #45

Closed
opened 2026-02-27 07:17:40 +03:00 by kerem · 2 comments
Owner

Originally created by @walleXD on GitHub (Feb 3, 2026).
Original GitHub issue: https://github.com/jwadow/kiro-gateway/issues/64

Kiro Gateway Version

latest

What happened?

Getting Improperly formed request while calling from Codex App:

[model_providers.kiro]
name = "Kiro"
base_url = "http://kiro-gw.kiro-proxy.orb.local/v1"
wire_api = "chat"
experimental_bearer_token = "kiro"

Debug Logs attached

Debug Logs

debug_logs.zip

Originally created by @walleXD on GitHub (Feb 3, 2026). Original GitHub issue: https://github.com/jwadow/kiro-gateway/issues/64 ### Kiro Gateway Version latest ### What happened? Getting Improperly formed request while calling from Codex App: ```toml [model_providers.kiro] name = "Kiro" base_url = "http://kiro-gw.kiro-proxy.orb.local/v1" wire_api = "chat" experimental_bearer_token = "kiro" ``` Debug Logs attached ### Debug Logs [debug_logs.zip](https://github.com/user-attachments/files/25030932/debug_logs.zip)
kerem 2026-02-27 07:17:40 +03:00
  • closed this issue
  • added the
    bug
    fixed
    labels
Author
Owner

@jwadow commented on GitHub (Feb 3, 2026):

Hey @walleXD, fixed the issue.
The gateway now handles the developer role properly by converting it to a user message internally. Your requests should work now without any "Improperly formed request" errors.

Give it a try and let me know if you run into any issues.

<!-- gh-comment-id:3840347339 --> @jwadow commented on GitHub (Feb 3, 2026): Hey @walleXD, fixed the issue. The gateway now handles the `developer` role properly by converting it to a user message internally. Your requests should work now without any "Improperly formed request" errors. Give it a try and let me know if you run into any issues.
Author
Owner

@walleXD commented on GitHub (Feb 3, 2026):

Thanks a lot @jwadow! Will test on my end and report back if there's any issue

<!-- gh-comment-id:3842145119 --> @walleXD commented on GitHub (Feb 3, 2026): Thanks a lot @jwadow! Will test on my end and report back if there's any issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/kiro-gateway-jwadow#45
No description provided.