Replies: 1 comment
-
|
我也遇到了这个问题,正在尝试重装kimi-cli看看能不能解决 I also encountered this problem and am trying to reinstall kimi-cli to see if it can be solved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Kimi Code CLI is running?
kimi, version 1.12.0
Which open platform/subscription were you using?
/login
Which model were you using?
kimi-for-coding
What platform is your computer?
Linux 6.8.0-100-generic x86_64 x86_64
What issue are you seeing?
LocalProtocolError: Illegal header value caused by kernel version string in HTTP headers on Ubuntu 22.04
环境信息 (Environment)
OS: Ubuntu 22.04.5 LTS (Jammy)
Kernel: #100~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 19 17:10:19 UTC 2025
安装方式: uv tool install kimi-cli (Python 3.13.11 managed by uv)
Kimi CLI 版本: 1.12 (通过 kimi --version 确认)
Python 版本: 3.13.11 (uv 隔离环境,非系统 Python 3.10)
问题描述 (Description)
Kimi CLI 在发起 HTTP 请求时,错误地将 Ubuntu 内核版本字符串(#100~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC...)作为 HTTP Header 的值发送,导致 httpx/httpcore 抛出 LocalProtocolError: Illegal header value 异常,无法连接到 API。
What steps can reproduce the bug?
在 Ubuntu 22.04 上通过 uv 安装:uv tool install kimi-cli
运行 kimi 进入交互模式
输入任意消息(如 你好)
等待几秒后报错 LLM provider error: Connection error
kimi.log
What is the expected behavior?
Kimi 应该返回我可以帮助您做什么之类的回答
Additional information
有些项目只能基于本地环境,无法迁移项目到其他主机,所以只能等待修复。
What version of Kimi Code CLI is running?
kimi, version 1.12.0
Which open platform/subscription were you using?
/login
Which model were you using?
kimi-for-coding
What platform is your computer?
Linux 6.8.0-100-generic x86_64 x86_64
What issue are you seeing?
LocalProtocolError: Illegal header value caused by kernel version string in HTTP headers on Ubuntu 22.04
Environment
OS: Ubuntu 22.04.5 LTS (Jammy)
Kernel: #100~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 19 17:10:19 UTC 2025
Installation method: uv tool install kimi-cli (Python 3.13.11 managed by uv)
Kimi CLI version: 1.12 (confirm with kimi --version)
Python version: 3.13.11 (uv isolation environment, non-system Python 3.10)
Description
When Kimi CLI initiates an HTTP request, it incorrectly sends the Ubuntu kernel version string (#100~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC...) as the value of the HTTP Header, causing httpx/httpcore to throw a LocalProtocolError: Illegal header value exception and unable to connect to the API.
What steps can reproduce the bug?
Install via uv on Ubuntu 22.04: uv tool install kimi-cli
Run kimi to enter interactive mode
Enter any message (e.g. Hello)
Wait a few seconds and then report an error LLM provider error: Connection error
kimi.log
What is the expected behavior?
Kimi should return answers like what can I do to help you?
Additional information
Some projects can only be based on the local environment and cannot be migrated to other hosts, so they can only wait for repairs.
Beta Was this translation helpful? Give feedback.
All reactions