Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal #90

Open
liuguangrui123 opened this issue May 9, 2023 · 1 comment

Comments

@liuguangrui123
Copy link

liuguangrui123 commented May 9, 2023

我这边使用的是阿里云的轻量云服务器、 wechaty网关部署的版本是0.65 之前客户端在调试的时候没有问题、但是过了几天之后就报如下的错误。 不清楚具体的原因。 如果大家看到了 希望可以给到一些建议。问题现在还没有解决、当前发文日期是23年5月9日。
备注 curl https://api.chatie.io/v0/hosties/token 这个没有问题 我理解wechaty 网关应该是部署成功了



01:26:41 VERB EventStreamManager onStreamingCallEnd(callback)
01:26:41 INFO [PuppetPadlocal] start login with type: AutoLogin
01:26:51 VERB StateSwitch <PuppetPadlocal> off(pending) <- (false)
01:26:51 VERB StateSwitch <PuppetPadlocal> off(true) <- (pending)
01:26:52 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"heartbeat@padlocal"})
01:26:52 VERB StateSwitch <PuppetPadlocal> on(pending) <- (false)
01:26:53 INFO [PuppetPadlocal] start login with type: AutoLogin
01:27:03 ERR [PadLocalClient] error while syncing onpush: VError: [tid:cb8ad29b] request has been cancelled for reason: SERVER_ERROR: 4 DEADLINE_EXCEEDED: Deadline exceeded
    at Request._failAllPendingRequest (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:334:15)
    at ClientDuplexStreamImpl.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:82:12)
    at ClientDuplexStreamImpl.emit (events.js:400:28)
    at ClientDuplexStreamImpl.emit (domain.js:470:12)
    at Object.onReceiveStatus (/wechaty/node_modules/@grpc/grpc-js/src/client.ts:670:18)
    at Object.onReceiveStatus (/wechaty/node_modules/@grpc/grpc-js/src/client-interceptors.ts:389:48)
    at /wechaty/node_modules/@grpc/grpc-js/src/call-stream.ts:276:24
    at processTicksAndRejections (internal/process/task_queues.js:77:11)
    at runNextTicks (internal/process/task_queues.js:64:3)
    at listOnTimeout (internal/timers.js:526:9)
    at processTimers (internal/timers.js:500:7)
01:27:03 WARN [PadLocalClient] 
================================================================================
WARNING: Your token will be expired on: "2023/05/12". Please renew ASAP to avoid
                              service termination.
================================================================================

01:27:03 VERB StateSwitch <WechatyReady> on(true) <- (true)
01:27:03 VERB EventStreamManager grpcEmit(EVENT_TYPE_READY[23], {"data":"ready"})
01:27:03 VERB StateSwitch <PuppetPadlocal> on(true) <- (pending)
01:27:03 VERB Contact ready() this.wechaty.puppet.contactPayload(weixin) exception: [tid:aa9ffb66] request has been cancelled for reason: SERVER_ERROR: 4 DEADLINE_EXCEEDED: Deadline exceeded
01:27:03 VERB Contact ready() this.wechaty.puppet.contactPayload(weixin) exception: [tid:aa9ffb66] request has been cancelled for reason: SERVER_ERROR: 4 DEADLINE_EXCEEDED: Deadline exceeded
01:27:03 VERB Contact ready() this.wechaty.puppet.contactPayload(weixin) exception: [tid:aa9ffb66] request has been cancelled for reason: SERVER_ERROR: 4 DEADLINE_EXCEEDED: Deadline exceeded
01:27:03 VERB Contact ready() this.wechaty.puppet.contactPayload(newsapp) exception: [tid:ffa820d0] request has been cancelled for reason: SERVER_ERROR: 4 DEADLINE_EXCEEDED: Deadline exceeded
01:27:03 VERB Contact ready() this.wechaty.puppet.contactPayload(newsapp) exception: [tid:ffa820d0] request has been cancelled for reason: SERVER_ERROR: 4 DEADLINE_EXCEEDED: Deadline exceeded
01:27:04 VERB StateSwitch <PuppetPadlocal> off(pending) <- (false)
01:27:04 VERB StateSwitch <PuppetPadlocal> off(true) <- (pending)
01:27:05 VERB EventStreamManager grpcEmit(EVENT_TYPE_HEARTBEAT[1], {"data":"heartbeat@padlocal"})
01:27:05 VERB StateSwitch <PuppetPadlocal> on(pending) <- (false)
01:27:06 INFO [PuppetPadlocal] start login with type: AutoLogin
01:27:06 ERR [PadLocalClient] error while syncing onpush: VError: [tid:3d89af3d] request has been cancelled for reason: SERVER_ERROR: 4 DEADLINE_EXCEEDED: Deadline exceeded
    at Request._failAllPendingRequest (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:334:15)
    at ClientDuplexStreamImpl.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:82:12)
    at ClientDuplexStreamImpl.emit (events.js:400:28)
    at ClientDuplexStreamImpl.emit (domain.js:470:12)
    at Object.onReceiveStatus (/wechaty/node_modules/@grpc/grpc-js/src/client.ts:670:18)
    at Object.onReceiveStatus (/wechaty/node_modules/@grpc/grpc-js/src/client-interceptors.ts:389:48)
    at /wechaty/node_modules/@grpc/grpc-js/src/call-stream.ts:276:24
    at processTicksAndRejections (internal/process/task_queues.js:77:11)
    at runNextTicks (internal/process/task_queues.js:64:3)
    at listOnTimeout (internal/timers.js:526:9)
    at processTimers (internal/timers.js:500:7)
01:27:08 ERR Config ###########################
01:27:08 ERR Config unhandledRejection: VError: [tid:cb8ad29b] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal
    at Request.__sendMessage (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:163:13)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:127:12)
    at Generator.next (<anonymous>)
    at /wechaty/node_modules/padlocal-client-ts/dist/Request.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:4:12)
    at Request._sendMessage (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:90:16)
    at Request.subReply (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:106:10)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:298:12)
    at Generator.next (<anonymous>)
    at fulfilled (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) [object Promise]
01:27:08 ERR Config ###########################
01:27:08 ERR Config process.on(unhandledRejection) promise.catch([tid:cb8ad29b] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal)
Config SubRequestCancelError [VError]: [tid:cb8ad29b] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal
    at Request.__sendMessage (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:163:13)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:127:12)
    at Generator.next (<anonymous>)
    at /wechaty/node_modules/padlocal-client-ts/dist/Request.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:4:12)
    at Request._sendMessage (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:90:16)
    at Request.subReply (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:106:10)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:298:12)
    at Generator.next (<anonymous>)
    at fulfilled (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  jse_shortmsg: '[tid:cb8ad29b] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal',
  jse_info: {},
  reason: 1
}
(node:41) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 22)
01:27:08 ERR [PadLocalClient] error while syncing onpush: VError: [tid:fe373f84] request has been cancelled for reason: SERVER_ERROR: 4 DEADLINE_EXCEEDED: Deadline exceeded
    at Request._failAllPendingRequest (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:334:15)
    at ClientDuplexStreamImpl.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:82:12)
    at ClientDuplexStreamImpl.emit (events.js:400:28)
    at ClientDuplexStreamImpl.emit (domain.js:470:12)
    at Object.onReceiveStatus (/wechaty/node_modules/@grpc/grpc-js/src/client.ts:670:18)
    at Object.onReceiveStatus (/wechaty/node_modules/@grpc/grpc-js/src/client-interceptors.ts:389:48)
    at /wechaty/node_modules/@grpc/grpc-js/src/call-stream.ts:276:24
    at processTicksAndRejections (internal/process/task_queues.js:77:11)
    at runNextTicks (internal/process/task_queues.js:64:3)
    at listOnTimeout (internal/timers.js:526:9)
    at processTimers (internal/timers.js:500:7)
01:27:09 ERR Config ###########################
01:27:09 ERR Config unhandledRejection: VError: [tid:aa9ffb66] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal
    at Request.__sendMessage (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:163:13)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:127:12)
    at Generator.next (<anonymous>)
    at /wechaty/node_modules/padlocal-client-ts/dist/Request.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:4:12)
    at Request._sendMessage (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:90:16)
    at Request.subReply (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:106:10)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:298:12)
    at Generator.next (<anonymous>)
    at fulfilled (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) [object Promise]
01:27:09 ERR Config ###########################
01:27:09 ERR Config process.on(unhandledRejection) promise.catch([tid:aa9ffb66] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal)
Config SubRequestCancelError [VError]: [tid:aa9ffb66] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal
    at Request.__sendMessage (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:163:13)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:127:12)
    at Generator.next (<anonymous>)
    at /wechaty/node_modules/padlocal-client-ts/dist/Request.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:4:12)
    at Request._sendMessage (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:90:16)
    at Request.subReply (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:106:10)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:298:12)
    at Generator.next (<anonymous>)
    at fulfilled (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  jse_shortmsg: '[tid:aa9ffb66] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal',
  jse_info: {},
  reason: 1
}
(node:41) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 24)
01:27:11 ERR Config ###########################
01:27:11 ERR Config unhandledRejection: VError: [tid:ffa820d0] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal
    at Request.__sendMessage (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:163:13)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:127:12)
    at Generator.next (<anonymous>)
    at /wechaty/node_modules/padlocal-client-ts/dist/Request.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:4:12)
    at Request._sendMessage (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:90:16)
    at Request.subReply (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:106:10)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:298:12)
    at Generator.next (<anonymous>)
    at fulfilled (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) [object Promise]
01:27:11 ERR Config ###########################
01:27:11 ERR Config process.on(unhandledRejection) promise.catch([tid:ffa820d0] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal)
Config SubRequestCancelError [VError]: [tid:ffa820d0] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal
    at Request.__sendMessage (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:163:13)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:127:12)
    at Generator.next (<anonymous>)
    at /wechaty/node_modules/padlocal-client-ts/dist/Request.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:4:12)
    at Request._sendMessage (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:90:16)
    at Request.subReply (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:106:10)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:298:12)
    at Generator.next (<anonymous>)
    at fulfilled (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  jse_shortmsg: '[tid:ffa820d0] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal',
  jse_info: {},
  reason: 1
}
(node:41) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 26)
01:27:11 ERR Config ###########################
01:27:11 ERR Config unhandledRejection: VError: [tid:fe373f84] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal
    at Request.__sendMessage (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:163:13)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:127:12)
    at Generator.next (<anonymous>)
    at /wechaty/node_modules/padlocal-client-ts/dist/Request.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:4:12)
    at Request._sendMessage (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:90:16)
    at Request.subReply (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:106:10)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:298:12)
    at Generator.next (<anonymous>)
    at fulfilled (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) [object Promise]
01:27:11 ERR Config ###########################
01:27:11 ERR Config process.on(unhandledRejection) promise.catch([tid:fe373f84] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal)
Config SubRequestCancelError [VError]: [tid:fe373f84] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal
    at Request.__sendMessage (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:163:13)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:127:12)
    at Generator.next (<anonymous>)
    at /wechaty/node_modules/padlocal-client-ts/dist/Request.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:4:12)
    at Request._sendMessage (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:90:16)
    at Request.subReply (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:106:10)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:298:12)
    at Generator.next (<anonymous>)
    at fulfilled (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  jse_shortmsg: '[tid:fe373f84] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal',
  jse_info: {},
  reason: 1
}
(node:41) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 28)
01:27:13 ERR Config ###########################
01:27:13 ERR Config unhandledRejection: VError: [tid:3d89af3d] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal
    at Request.__sendMessage (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:163:13)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:127:12)
    at Generator.next (<anonymous>)
    at /wechaty/node_modules/padlocal-client-ts/dist/Request.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:4:12)
    at Request._sendMessage (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:90:16)
    at Request.subReply (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:106:10)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:298:12)
    at Generator.next (<anonymous>)
    at fulfilled (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) [object Promise]
01:27:13 ERR Config ###########################
01:27:13 ERR Config process.on(unhandledRejection) promise.catch([tid:3d89af3d] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal)
Config SubRequestCancelError [VError]: [tid:3d89af3d] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal
    at Request.__sendMessage (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:163:13)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:127:12)
    at Generator.next (<anonymous>)
    at /wechaty/node_modules/padlocal-client-ts/dist/Request.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:4:12)
    at Request._sendMessage (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:90:16)
    at Request.subReply (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:106:10)
    at Request.<anonymous> (/wechaty/node_modules/padlocal-client-ts/src/Request.ts:298:12)
    at Generator.next (<anonymous>)
    at fulfilled (/wechaty/node_modules/padlocal-client-ts/dist/Request.js:5:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  jse_shortmsg: '[tid:3d89af3d] request has been cancelled for reason: SERVER_ERROR, can not send message while stream status is illegal',
  jse_info: {},
@angeljanne
Copy link

你网关部署0.65版本能够正常扫码登录吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants