kimi-cli icon indicating copy to clipboard operation
kimi-cli copied to clipboard

【bug] API Error: 400 {"error":{"type":"invalid_request_error","message":"Invalid request Error"},"type":"error"}

Open dorightyang opened this issue 10 months ago • 18 comments

What version of Kimi Code CLI is running?

Version: 2.1.23

Which open platform/subscription were you using?

win11 , powershell

Which model were you using?

Model: Default (claude-sonnet-4-5-20250929)

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

Image

What steps can reproduce the bug?

仔细阅读 "E:\问kimi-4个文件\Task.md",结合文件内容,深度思考,规划实施方案,然后和我确认。

● Read 1 file (ctrl+o to expand)

● 我已经阅读了任务文件。这是一个深度个人健康数据分析项目,需要综合四个维度的数据进行跨学科分析。让我先探索数据文件的目录结构,了解具体的文件格式和 容。

● Searched for 2 patterns, read 1 file (ctrl+o to expand)

● 找到了数据文件。让我读取这些文件以了解数据格式。

● Read 4 files (ctrl+o to expand) ⎿  API Error: 400 {"error":{"type":"invalid_request_error","message":"Invalid request Error"},"type":"error"}

✻ Churned for 1m 10s

❯ continue ⎿  API Error: 400 {"error":{"type":"invalid_request_error","message":"Invalid request Error"},"type":"error"}

2026.1.27 13点之前重试了两次同样的情况,17点第三次尝试暂时没有发现问题。

What is the expected behavior?

No response

Additional information

No response

dorightyang avatar Jan 29 '26 09:01 dorightyang

问题依旧! 这问题导致使用claude code时根本无法使用!


The problem remains! This problem makes it impossible to use claude code at all!

bkerf avatar Mar 02 '26 12:03 bkerf

问题依旧! 这问题导致使用claude code时根本无法使用!

The problem remains! This problem makes it impossible to use claude code at all!

我做的尝试:

1.换API key(问题依然存在) 2.换CLI:使用opencode。问题就解决了。

JMYok avatar Mar 05 '26 02:03 JMYok

只要一加载skills或者复杂的内容就会出现

xraywu avatar Mar 05 '26 04:03 xraywu

真的很垃圾,接入 cc switch 也一直报这个错误。我还以为是我哪里没搞好,浪费我半天配置和查资料的时间。之前测试GLM完全没遇到过类似的问题。 半成品拿出来收费,moonshot真有你的。


It's really rubbish. I keep getting this error when I connect to cc switch. I thought I had done something wrong and wasted half a day configuring and checking information. I have never encountered similar problems when testing GLM before. If you take out the semi-finished product and charge for it, Moonshot really has it for you.

murphypei avatar Mar 05 '26 06:03 murphypei

Same error with Claude Code too, I use https://github.com/jolehuit/clother or https://github.com/foreveryh/claude-code-switch

BK0STAR avatar Mar 05 '26 14:03 BK0STAR

Same error happens when facing complex prompt in claude code.

Image

MatryoshkaLJY avatar Mar 05 '26 14:03 MatryoshkaLJY

Same error happens when facing complex prompt in claude code.

Image

No, for me just at launch with claude code I have this error with the 1st prompt

BK0STAR avatar Mar 05 '26 15:03 BK0STAR

我在claude code的时候也会出现同样的问题,只要我试图使用mcp


I have the same problem in claude code, whenever I try to use mcp

Sketchingdog avatar Mar 05 '26 17:03 Sketchingdog

For 3 weeks everything has worked fine. Today this issue started for me too.

API Error: 400 {"error":{"type":"invalid_request_error","message":"Invalid request Error"},"type":"error"}

Neither Claude Code or OpenCode works with Kimi Code anymore.

diegotl avatar Mar 05 '26 19:03 diegotl

是的,同样的问题在使用Vscode中的Claude code,我是用CC switch一键配置的Kimi,使用它阅读Pdf的时候出现的报错


Yes, I have the same problem when using Claude code in Vscode. I used CC switch to configure Kimi with one click. When using it to read Pdf, an error occurred.

mom145015 avatar Apr 07 '26 02:04 mom145015

不是哥们,我发了个md文件让它基于图片审核都报错啊,你无敌了kimi。我都用poppler把PDF文件转化为图片了你还读不了markdown文件?


No, buddy, I sent an md file and it reported an error based on the image review. You are invincible kimi. I've used poppler to convert PDF files into images, but you still can't read markdown files?

mom145015 avatar Apr 10 '26 10:04 mom145015

更神的来了,读取md文件都不行了


What’s even more amazing is that I can’t even read the md file.

mom145015 avatar Apr 13 '26 01:04 mom145015

+1 今天使用 kimi-k2.6-code-preview 时碰到了此类问题,均在更新 cc-switch 后出现


+1 I encountered this kind of problem today when using kimi-k2.6-code-preview. It all appeared after updating cc-switch

Lionad-Morotar avatar Apr 14 '26 04:04 Lionad-Morotar

+1 今天使用 kimi-k2.6-code-preview 时碰到了此类问题,均在更新 cc-switch 后出现

排查发现是 ToolSearch 还没兼容。使用此类提示词可以稳定复现:

Image

见文档:https://www.kimi.com/code/docs/more/third-party-agents.html#claude-code

Lionad-Morotar avatar Apr 14 '26 05:04 Lionad-Morotar

Image

我的也一样

huangking avatar May 11 '26 17:05 huangking

但是我换一个对话框就可以了,有时候出毛病有时候可以,然后用deepseek完全不会出现这个问题


But I can just change the dialog box. Sometimes it goes wrong and sometimes it works. Then using deepseek, this problem will not occur at all

KaisvenZ avatar May 13 '26 08:05 KaisvenZ

关闭cc中的工具搜索就能用了


Turn off the tool search in cc and it will work

Hodeuo avatar May 18 '26 14:05 Hodeuo

今天试了下打开 ToolSearch 也能正常调用了

~排查发现是 ToolSearch 还没兼容。使用此类提示词可以稳定复现:~


I tried opening ToolSearch today and it can be called normally.

~Troubleshooting found that ToolSearch is not compatible yet. Use such prompt words to achieve stable reproduction: ~

Lionad-Morotar avatar May 29 '26 08:05 Lionad-Morotar