[GH-ISSUE #187] [Claude2APi] v2.5.1 400请求错误 #142

Closed
opened 2026-02-27 07:18:12 +03:00 by kerem · 2 comments
Owner

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)

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)
kerem closed this issue 2026-02-27 07:18:12 +03:00
Author
Owner

@justlovemaki commented on GitHub (Jan 8, 2026):

Image
<!-- gh-comment-id:3723695205 --> @justlovemaki commented on GitHub (Jan 8, 2026): <img width="1165" height="636" alt="Image" src="https://github.com/user-attachments/assets/aaca94eb-084c-4edc-bb2b-4896104c0f1b" />
Author
Owner

@tickernelz commented on GitHub (Jan 8, 2026):

问题描述 (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)

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

<!-- gh-comment-id:3723890510 --> @tickernelz commented on GitHub (Jan 8, 2026): > 问题描述 (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) 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
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#142
No description provided.