mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 17:35:58 +03:00
[GH-ISSUE #187] [Claude2APi] v2.5.1 400请求错误 #142
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#142
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 @luluxiuxiu on GitHub (Jan 8, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/187
问题描述 (Problem Description)
我在使用 [2.5.1] 进行 [正常CC请求] 时,发现了预期之外的行为 400错误
服务器是日本服务器,服务器部署了KIRO.RS可以正常使用,目前已改为使用KIRO.RS
环境信息 (Environment)
OS: Ubuntu 22.04 docker
Software Version: v2.5.1
Dependencies: NodeJsv20.19.6
复现步骤 (Steps to Reproduce)
打开Claude Code 发送你好,后台日志报错 400 BADREQUEST
预期行为 vs 实际行为 (Expected vs Actual)
预期: 应该输出 "Success" 应当正确输出 你好的正文信息和请求,返回200.
实际: 输出了错误代码 400
错误日志/代码片段 (Logs/Code)
[19:57:04] [ERROR] [Kiro] API call failed (Status: 400, Code: ERR_BAD_REQUEST): Request failed with status code 400
[19:57:04] [ERROR] [Server] Error during unary processing: AxiosError: Request failed with status code 400 at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11) at IncomingMessage.emit (node:events:536:35) at endReadableNT (node:internal/streams/readable:1698:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async KiroApiService.callApi (file:///app/src/claude/claude-kiro.js:1053:30) at async KiroApiService.generateContent (file:///app/src/claude/claude-kiro.js:1157:26) at async handleUnaryRequest (file:///app/src/common.js:314:32) at async handleContentGenerationRequest (file:///app/src/common.js:491:9) at async handleAPIRequests (file:///app/src/api-manager.js:52:13) at async Server.requestHandler (file:///app/src/request-handler.js:210:32)
[19:57:02] [ERROR] [Server] Error during stream processing: Error: Error processing response: Request failed with status code 400 at KiroApiService.generateContentStream (file:///app/src/claude/claude-kiro.js:1665:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async KiroApiServiceAdapter.generateContentStream (file:///app/src/adapter.js:279:9) at async handleStreamRequest (file:///app/src/common.js:235:26) at async handleContentGenerationRequest (file:///app/src/common.js:489:9) at async handleAPIRequests (file:///app/src/api-manager.js:52:13) at async Server.requestHandler (file:///app/src/request-handler.js:210:32)
@justlovemaki commented on GitHub (Jan 8, 2026):
@tickernelz commented on GitHub (Jan 8, 2026):
this can happened when you have custom agents in your claude code, try to delete it. or you have strange prompt. it should be fixed in #199