lcjqyml/wechatbot

网络错误 Client network socket disconnected before secure TLS connection was established

SIGHTDEEP opened this issue · 2 comments

表现
偶尔有报错 Client network socket disconnected before secure TLS connection was established
得重启才能正常工作

运行环境:

  • 操作系统:linux
  • Docker: 是
  • 项目版本:?

复现步骤
偶现,频率有点高

预期行为
描述你认为正常情况下应该看见的情况

截图
web_1 | [5/25/2023, 8:26:05 AM] autoAcceptFriendShip: false
web_1 | [5/25/2023, 8:26:05 AM] autoAcceptRoomInvite: true
web_1 | [5/25/2023, 8:26:05 AM] privateChatTrigger:
web_1 | [5/25/2023, 8:26:05 AM] groupChatTrigger:
web_1 | [5/25/2023, 8:26:05 AM] responseQuote: true
web_1 | [5/25/2023, 8:26:05 AM] ✅ User Contact has logged in
web_1 | [5/25/2023, 8:26:07 AM] 📨 Skip message --> Message#Unknown[🗣Contact]
web_1 | uncaughtException GError: Client network socket disconnected before secure TLS connection was established
web_1 | at Function.AxiosError.from (/app/node_modules/axios/lib/core/AxiosError.js:89:14)
web_1 | at RedirectableRequest.handleRequestError (/app/node_modules/axios/lib/adapters/http.js:577:25)
web_1 | at RedirectableRequest.emit (node:events:525:35)
web_1 | at RedirectableRequest.emit (node:domain:489:12)
web_1 | at ClientRequest.eventHandlers. (/app/node_modules/follow-redirects/index.js:14:24)
web_1 | at ClientRequest.emit (node:events:513:28)
web_1 | at ClientRequest.emit (node:domain:489:12)
web_1 | at TLSSocket.socketErrorListener (node:_http_client:494:9)
web_1 | at TLSSocket.emit (node:events:513:28)
web_1 | at TLSSocket.emit (node:domain:489:12) {
web_1 | code: 2,
web_1 | details: 'Error: Client network socket disconnected before secure TLS connection was established\n' +
web_1 | ' at Function.AxiosError.from (/app/node_modules/axios/lib/core/AxiosError.js:89:14)\n' +
web_1 | ' at RedirectableRequest.handleRequestError (/app/node_modules/axios/lib/adapters/http.js:577:25)\n' +
web_1 | ' at RedirectableRequest.emit (node:events:525:35)\n' +
web_1 | ' at RedirectableRequest.emit (node:domain:489:12)\n' +
web_1 | ' at ClientRequest.eventHandlers. (/app/node_modules/follow-redirects/index.js:14:24)\n' +
web_1 | ' at ClientRequest.emit (node:events:513:28)\n' +
web_1 | ' at ClientRequest.emit (node:domain:489:12)\n' +
web_1 | ' at TLSSocket.socketErrorListener (node:_http_client:494:9)\n' +
web_1 | ' at TLSSocket.emit (node:events:513:28)\n' +
web_1 | ' at TLSSocket.emit (node:domain:489:12)'
Uploading image.png…

其他内容
此处填写其他内容,没有可跳过

在云服务器上容易报错,在本地跑没怎么见报这种错

网络不稳定,可以考虑用tailscale组建网络。