[GH-ISSUE #288] 美西服务器部署,本地使用时速度很慢,而且一直出现API_(und_err_socket)问题,请问是什么原因? #204

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

Originally created by @shxiq01 on GitHub (Jan 28, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/288

我部署在远程服务器上(洛杉矶节点),做了cloud flare优选节点,ITDOG检查过,也是全绿,延迟100ms左右。

但是本地无论使用代理(clash tun模式)还是直连,都只能回答一个简单问题,然后就一直开始API_(und_err_socket)。

我想知道这个原因是什么呢?

Originally created by @shxiq01 on GitHub (Jan 28, 2026). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/288 我部署在远程服务器上(洛杉矶节点),做了cloud flare优选节点,ITDOG检查过,也是全绿,延迟100ms左右。 但是本地无论使用代理(clash tun模式)还是直连,都只能回答一个简单问题,然后就一直开始API_(und_err_socket)。 我想知道这个原因是什么呢?
kerem closed this issue 2026-02-27 07:18:28 +03:00
Author
Owner

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

检查下访问的你使用的提供商的API在你服务器上的联通情况

<!-- gh-comment-id:3811979362 --> @justlovemaki commented on GitHub (Jan 28, 2026): 检查下访问的你使用的提供商的API在你服务器上的联通情况
Author
Owner

@shxiq01 commented on GitHub (Jan 29, 2026):

检查下访问的你使用的提供商的API在你服务器上的联通情况

请教一下怎么检查呢?我看了下日志,没找到地址。服务商是 kiro

<!-- gh-comment-id:3814807438 --> @shxiq01 commented on GitHub (Jan 29, 2026): > 检查下访问的你使用的提供商的API在你服务器上的联通情况 请教一下怎么检查呢?我看了下日志,没找到地址。服务商是 kiro
Author
Owner

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

页面上添加提供商的节点时,输入框里有默认的url

<!-- gh-comment-id:3815357870 --> @justlovemaki commented on GitHub (Jan 29, 2026): 页面上添加提供商的节点时,输入框里有默认的url
Author
Owner

@shxiq01 commented on GitHub (Jan 29, 2026):

页面上添加提供商的节点时,输入框里有默认的url

我看到 对应有这个日志

[2026-01-29 06:19:24.190] [Req:cdd9b1f9] [ERROR] [Kiro] API call failed (Status: undefined, Code: ERR_BAD_RESPONSE): stream has been aborted [2026-01-29 06:19:24.190] [Req:cdd9b1f9] [ERROR] [Server] Error during unary processing: AxiosError: stream has been aborted at IncomingMessage.handlerStreamAborted (file:///app/node_modules/axios/lib/adapters/http.js:571:23) at IncomingMessage.emit (node:events:524:28) at IncomingMessage._destroy (node:_http_incoming:221:10) at _destroy (node:internal/streams/destroy:121:10) at IncomingMessage.destroy (node:internal/streams/destroy:83:5) at TLSSocket.socketCloseListener (node:_http_client:464:11) at TLSSocket.emit (node:events:536:35) at node:net:343:12 at Socket.done (node:_tls_wrap:665:7) at Object.onceWrapper (node:events:639:26) 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/providers/claude/claude-kiro.js:1338:30) at async KiroApiService.generateContent (file:///app/src/providers/claude/claude-kiro.js:1633:26) at async handleUnaryRequest (file:///app/src/utils/common.js:515:32) at async handleContentGenerationRequest (file:///app/src/utils/common.js:803:9) at async handleAPIRequests (file:///app/src/services/api-manager.js:52:13) at async Server.requestHandler (file:///app/src/handlers/request-handler.js:244:32)

<!-- gh-comment-id:3815729877 --> @shxiq01 commented on GitHub (Jan 29, 2026): > 页面上添加提供商的节点时,输入框里有默认的url 我看到 对应有这个日志 `[2026-01-29 06:19:24.190] [Req:cdd9b1f9] [ERROR] [Kiro] API call failed (Status: undefined, Code: ERR_BAD_RESPONSE): stream has been aborted [2026-01-29 06:19:24.190] [Req:cdd9b1f9] [ERROR] [Server] Error during unary processing: AxiosError: stream has been aborted at IncomingMessage.handlerStreamAborted (file:///app/node_modules/axios/lib/adapters/http.js:571:23) at IncomingMessage.emit (node:events:524:28) at IncomingMessage._destroy (node:_http_incoming:221:10) at _destroy (node:internal/streams/destroy:121:10) at IncomingMessage.destroy (node:internal/streams/destroy:83:5) at TLSSocket.socketCloseListener (node:_http_client:464:11) at TLSSocket.emit (node:events:536:35) at node:net:343:12 at Socket.done (node:_tls_wrap:665:7) at Object.onceWrapper (node:events:639:26) 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/providers/claude/claude-kiro.js:1338:30) at async KiroApiService.generateContent (file:///app/src/providers/claude/claude-kiro.js:1633:26) at async handleUnaryRequest (file:///app/src/utils/common.js:515:32) at async handleContentGenerationRequest (file:///app/src/utils/common.js:803:9) at async handleAPIRequests (file:///app/src/services/api-manager.js:52:13) at async Server.requestHandler (file:///app/src/handlers/request-handler.js:244:32)`
Author
Owner

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

API call failed (Status: undefined, Code: ERR_BAD_RESPONSE): stream has been aborted。 kiro服务不稳定

<!-- gh-comment-id:3815811857 --> @justlovemaki commented on GitHub (Jan 29, 2026): API call failed (Status: undefined, Code: ERR_BAD_RESPONSE): stream has been aborted。 kiro服务不稳定
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#204
No description provided.