mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 17:35:58 +03:00
[GH-ISSUE #89] [Bug] Kiro 400 error with Improperly formed request massge #78
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LimLLL on GitHub (Nov 29, 2025).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/89
在ccr里配置然后cc里使用,会一直报错400,Improperly formed request。可以提供出现问题的账号用以复现问题,此外问题为100%触发。账号没问题,因为在cherry studio里一直可以正常使用
这是详细log:
@justlovemaki commented on GitHub (Dec 1, 2025):
1.本来就兼容claude协议,不需要ccr转换
2.代码已更新,再试试看
@LimLLL commented on GitHub (Dec 1, 2025):
拉取了最新代码, 无论用不用ccr,都还是一样的报错:
@justlovemaki commented on GitHub (Dec 1, 2025):
AI system design. Masters chain-of-thought, constitutional AI, and prod'... 102501 more characters,
需要完整的请求体,用来测试。
最好是有详细的操作流程,用于复现。
@LimLLL commented on GitHub (Dec 1, 2025):
完整的报错,导成log了佬:
kiro-error-response-1764576274127.log
claude code:
v2.0.42启动指令:
node src/api-server.js --provider-pools-file provider_pools.json --model-provider claude-kiro-oauth~/.claude/settings.json的env部分:@justlovemaki commented on GitHub (Dec 1, 2025):
我用的nodejs版v2.0.53,也有一样的问题,但是不影响正常输出。
只在ANTHROPIC_SMALL_FAST_MODEL请求报错,因为请求参数缺失数据。
在类vscode下用cc插件版,无任何报错。
所以,暂时不想兼容cc不同版本差异导致的bug。
@LimLLL commented on GitHub (Dec 1, 2025):
收到,我升级试试看
@LimLLL commented on GitHub (Dec 1, 2025):
佬,我cc升级到了2.0.55,步骤都没变,但是还是一样的报错诶,claude里面就是报错
API Error: undefined is not an object (evaluating 'R.map'),然后这个是log:kiro-error-response-1764579717092.log
@justlovemaki commented on GitHub (Dec 1, 2025):
我的项目你确定是最新的吗?
@LimLLL commented on GitHub (Dec 1, 2025):
是最新的,我本地mac不行,刚刚在ubuntu服务器全新装的cc然后拉取的最新代码,试了也不行,一样的报错。。哎,不纠结了
@justlovemaki commented on GitHub (Dec 1, 2025):
不能复现,有点无解
@justlovemaki commented on GitHub (Dec 1, 2025):
我在linux系统下也没问题的.
@LimLLL commented on GitHub (Dec 1, 2025):
我明天开个全新的linux虚拟机再测试看看,不知道是不是我那个ubuntu用太久了有啥毛病,辛苦佬了
@LimLLL commented on GitHub (Dec 2, 2025):
很奇怪,全新的虚拟机下,就没任何问题,甚至使用ccr的情况下,连之前的
Improperly formed request massge报错都没了,完全正常(虽然直接使用claude启动cc还是会使用claude直接启动也没任何报错了)。然后我测试了下,我的mac把Improperly formed request massge,但是不影响使用.claude,.claude.json,.claude.json.bak都删掉,重新启动claude,也没问题了。那大概率是cc滚动更新有点什么问题,完全删除历史文件然后重新打开claude生成这些文件,就好了。辛苦佬了