Description
线上部署的服务最近两周出现连接超时或token查询不到,导致机器人一直掉线,token是已续费的,连接地址:token-service-discovery-test.juzibot.com
报错:
机器人检测到错误事件时发出 ===>>> GError: 14 UNAVAILABLE: No connection established. Last error: connect ETIMEDOUT 161.189.227.42:8788 (2025-05-11T19:05:04.896Z)
at callErrorFromStatus (/bot/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
at Object.onReceiveStatus (/bot/node_modules/@grpc/grpc-js/build/src/client.js:357:73)
at Object.onReceiveStatus (/bot/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)
at /bot/node_modules/@grpc/grpc-js/build/src/resolving-call.js:99:78
at processTicksAndRejections (node:internal/process/task_queues:77:11)
at runNextTicks (node:internal/process/task_queues:64:3)
at process.processImmediate (node:internal/timers:447:9)
for call at
at ServiceClientImpl.makeServerStreamRequest (/bot/node_modules/@grpc/grpc-js/build/src/client.js:340:32)
at ServiceClientImpl.event (/bot/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
at GrpcManager.startStream (file:///bot/node_modules/@juzi/wechaty-puppet-service/dist/esm/src/client/grpc-manager.js:241:41)
at GrpcManager.start (file:///bot/node_modules/@juzi/wechaty-puppet-service/dist/esm/src/client/grpc-manager.js:122:20)
at async PuppetService.onStart (file:///bot/node_modules/@juzi/wechaty-puppet-service/dist/esm/src/client/puppet-service.js:105:9)
at async PuppetService.start (file:///bot/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:62:17)
at async PuppetService.start (file:///bot/node_modules/@juzi/wechaty-puppet/dist/esm/src/mixins/service-mixin.js:18:13)
at async PuppetService.start (file:///bot/node_modules/@juzi/wechaty-puppet/dist/esm/src/mixins/ready-mixin.js:13:13)
at async WechatyImpl.start (file:///bot/node_modules/@juzi/wechaty/dist/esm/src/wechaty-mixins/puppet-mixin.js:58:21)
at async WechatyImpl.start (file:///bot/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:55:21) {
code: 14,
details: 'No connection established. Last error: connect ETIMEDOUT 161.189.227.42:8788 (2025-05-11T19:05:04.896Z)'
}
机器人检测到错误事件时发出 ===>>> GError: 14 UNAVAILABLE: No connection established. Last error: connect ETIMEDOUT 161.189.227.42:8788 (2025-05-11T19:05:04.896Z)
at callErrorFromStatus (/bot/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
at Object.onReceiveStatus (/bot/node_modules/@grpc/grpc-js/build/src/client.js:192:76)
at Object.onReceiveStatus (/bot/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360:141)
at Object.onReceiveStatus (/bot/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)
at /bot/node_modules/@grpc/grpc-js/build/src/resolving-call.js:99:78
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
at ServiceClientImpl.makeUnaryRequest (/bot/node_modules/@grpc/grpc-js/build/src/client.js:160:32)
at ServiceClientImpl.start (/bot/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
at node:internal/util:375:7
at new Promise ()
at bound (node:internal/util:361:12)
at GrpcManager.start (file:///bot/node_modules/@juzi/wechaty-puppet-service/dist/esm/src/client/grpc-manager.js:129:32)
at async PuppetService.onStart (file:///bot/node_modules/@juzi/wechaty-puppet-service/dist/esm/src/client/puppet-service.js:105:9)
at async PuppetService.start (file:///bot/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:62:17)
at async PuppetService.start (file:///bot/node_modules/@juzi/wechaty-puppet/dist/esm/src/mixins/service-mixin.js:18:13)
at async PuppetService.start (file:///bot/node_modules/@juzi/wechaty-puppet/dist/esm/src/mixins/ready-mixin.js:13:13) {
code: 14,
details: 'No connection established. Last error: connect ETIMEDOUT 161.189.227.42:8788 (2025-05-11T19:05:04.896Z)'
}
03:05:04 WARN ServiceCtl stop() found that is starting...
03:05:04 WARN ServiceCtl stop() found that is starting, waiting stable ... (max 5 seconds)
机器人检测到错误事件时发出 ===>>> GError: Timeout after 5000 ms
at TimeoutPromiseGError.from (file:///bot/node_modules/gerror/dist/esm/src/gerror/gerror.js:80:23)
at Timeout._onTimeout (file:///bot/node_modules/gerror/dist/esm/src/timeout-promise/timeout-promise.js:19:42)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7) {
code: 4,
details: 'GError: Timeout after 5000 ms\n' +
' at TimeoutPromiseGError.from (file:///bot/node_modules/gerror/dist/esm/src/gerror/gerror.js:80:23)\n' +
' at Timeout._onTimeout (file:///bot/node_modules/gerror/dist/esm/src/timeout-promise/timeout-promise.js:19:42)\n' +
' at listOnTimeout (node:internal/timers:569:17)\n' +
' at process.processTimers (node:internal/timers:512:7)',
name: 'DEADLINE_EXCEEDED'
}
03:05:09 WARN ServiceCtl stop() found that is starting, waiting stable ... timeout
03:05:09 INFO PuppetService onStop()
03:05:09 INFO PuppetService onStop() stopping grpc manager ...
03:05:09 INFO PuppetService onStop() stopping grpc manager ... done
03:05:09 INFO PuppetService onStop() ... done
03:05:09 INFO PuppetService stop healthCheck
03:05:09 INFO PuppetLoginMixin stop()
03:05:09 INFO PuppetSkeleton stop()