使用 claude code 请求 api 总是API Error: 400 {"error":{"type":"invalid_request_error","message":"Invalid request Error"},"type":"error"} || Use claude code to request api, always API Error: 400 {"error":{"type":"invalid_request_error","message":"Invalid request Error"},"type":"error"} #844
Replies: 16 comments 8 replies
-
|
额度也有 没有用完 现在是 0.99 的体验包 体验极差 总是400 吐血了 There is also a quota, but it has not been used up. Now it is a 0.99 experience package. The experience is extremely poor. It is always 400. I vomited blood |
Beta Was this translation helpful? Give feedback.
-
|
是不是history里面有图片,视频之类的,报错的截图能发一下么 Are there pictures, videos, etc. in the history? Can you send a screenshot of the error report? |
Beta Was this translation helpful? Give feedback.
-
|
这问题特别容易复现,体验太差了! This problem is very easy to reproduce and the experience is terrible! |
Beta Was this translation helpful? Give feedback.
-
|
有解决办法吗? Is there any solution? |
Beta Was this translation helpful? Give feedback.
-
|
发现只要一加载skill,就会出现这个错误 I found that as soon as I load the skill, this error will appear |
Beta Was this translation helpful? Give feedback.
-
|
我今天也遇到同样问题,当我在claude code使用/init就会出现400报错,然后就无法继续使用,只能重新打开新的窗口 I also encountered the same problem today. When I use /init in claude code, a 400 error will appear, and then I cannot continue to use it and can only reopen a new window. |
Beta Was this translation helpful? Give feedback.
-
|
目前在vscode claude code经常遇到这个问题,只要读文件就会出现400,但是cli没问题 Currently, I often encounter this problem in vscode claude code. As long as I read the file, 400 will appear, but the cli is fine |
Beta Was this translation helpful? Give feedback.
-
|
就是适配没做好,自己的cli也很不给力 It’s just that the adaptation is not done well, and my cli is also very weak |
Beta Was this translation helpful? Give feedback.
-
|
吐了,买个99的套餐只能聊天,一引用代码就报错 |
Beta Was this translation helpful? Give feedback.
-
|
啥时候能够修修呀 When can I repair it? |
Beta Was this translation helpful? Give feedback.
-
我也是,用着用着就这样
|
Beta Was this translation helpful? Give feedback.
-
我也是出现了这个问题,而且是直接cli里面出现的,突然就这样了
|
Beta Was this translation helpful? Give feedback.
-
|
从我自己的使用经验上来看,感觉也是因为加载Skill或者是调用其他Tool的时候,会发生这个错误。而且只要发生了400的错误,后续当前会话就无法再修复了,只能/clear以后新开一个会话才能解决。 From my own experience, I feel that this error occurs when loading Skill or calling other Tools. And as long as a 400 error occurs, the current session cannot be repaired. It can only be solved by /clearing a new session in the future. |
Beta Was this translation helpful? Give feedback.
-
只要出现了, 当前会话就无法使用了, 之后说什么都是400, 只能重新开启新的, 然后执行一段时间又会出现
|
Beta Was this translation helpful? Give feedback.
-
|
后面我干脆关掉了tool_search,新开的会话agent就很少出现400错误,但也只是权宜之计,很多工具都用不了
…________________________________
发件人: ArrayNull ***@***.***>
发送时间: 2026年5月15日 07:43
收件人: MoonshotAI/kimi-cli ***@***.***>
抄送: wjun ***@***.***>; Comment ***@***.***>
主题: Re: [MoonshotAI/kimi-cli] 使用 claude code 请求 api 总是API Error: 400 {"error":{"type":"invalid_request_error","message":"Invalid request Error"},"type":"error"} || Use claude code to request api, always API Error: 400 {"error":{"type":"invalid_request_erro...
image.png (view on web)<https://github.com/user-attachments/assets/76d6accd-2496-43cd-bcd5-7297ac705b3c> 只要出现了, 当前会话就无法使用了, 之后说什么都是400, 只能重新开启新的, 然后执行一段时间又会出现
―
Reply to this email directly, view it on GitHub<#844 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BRIDCXKUGZOEAAWPFPG6NM3423DBTAVCNFSM6AAAAACTURDX3KVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTMOJSG42TOMA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
如果说环境变量配置问题 但是有时候是可以使用的

400总是出现 请求几次就有 400 了
If there is a problem with environment variable configuration, it can sometimes be used

400 always appears. After several requests, it gets 400.
Beta Was this translation helpful? Give feedback.
All reactions