wechaty / wechaty-puppet-padplus

DEPRECATED: One puppet based on iPad protocal for Wechaty
https://wechaty.js.org/docs/puppet-services/
315 stars 65 forks source link

start grpc gateway failed for reason: Error: Try to connect to server timeout #281

Closed gracian37 closed 4 years ago

gracian37 commented 4 years ago

Important:Please file the issue follow the template, or we won't help you to solve the problem.

0. Report Issue Guide

  1. Please run the following command and check whether the problem has been fixed:
npm install wechaty-puppet-padlus@next
  1. Please search in the issue first, and make sure your problem had not been reported before

1. Versions

2. Describe the bug

Give a clear and concise description of what the bug is.

3. To Reproduce

This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.

Steps to reproduce the behavior:

  1. run '...'
  2. ...
  3. ...

4. Expected behavior

Give a clear and concise description of what you expected to happen.

5. Actual behavior

If applicable, add screenshots to help explain your problem. But do not paste log screenshots here.

6. Full Output Logs

Set env WECHATY_LOG=silly in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)

We need full log instead of log screenshot or log fragments!

Show Logs ```shell $ WECHATY_LOG=silly node yourbot.js Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages Answer: 14:48:26 INFO Config registering process.on("unhandledRejection") for development/debug 14:48:26 VERB Config constructor() 14:48:28 VERB Puppet constructor({"token":"puppet_padplus_xxxxxxx"}) #0 14:48:28 VERB StateSwitch constructor(PuppetPadplus, "{"log":{"enableTimestamp":true,"logLevel":5,"prefixFilter":{}}}") 14:48:28 VERB MemoryCard constructor(undefined) 14:48:28 VERB MemoryCard getStorage() for storage type: N/A 14:48:28 VERB MemoryCard load() from storage: N/A 14:48:28 VERB MemoryCard load() no storage 14:48:28 VERB Puppet constructor() watchdog timeout set to 60 seconds 14:48:28 VERB HotImport callerResolve(., D:\WorkSpace\EBKms_V4\node_modules\wechaty-puppet\dist\src\puppet.js) 14:48:28 SILL HotImport callerResolve() callsites() file=D:\WorkSpace\EBKms_V4\node_modules\hot-import\dist\src\hot-import.js, type=Object 14:48:28 SILL HotImport callerResolve() callsites() file=D:\WorkSpace\EBKms_V4\node_modules\wechaty-puppet\dist\src\puppet.js, type=null 14:48:28 SILL HotImport callerResolve() callsites() file=D:\WorkSpace\EBKms_V4\node_modules\wechaty-puppet-padplus\dist\src\puppet-padplus.js, type=null 14:48:28 SILL HotImport callerResolve() callerFile=D:\WorkSpace\EBKms_V4\node_modules\wechaty-puppet-padplus\dist\src\puppet-padplus.js 14:48:28 VERB Puppet constructor() childClassPath=D:\WorkSpace\EBKms_V4\node_modules\wechaty-puppet-padplus\dist\src 14:48:28 VERB PadplusManager constructor() 14:48:28 VERB Wechaty constructor() 14:48:28 VERB StateSwitch constructor(Wechaty, "{"log":{"enableTimestamp":true,"logLevel":5,"prefixFilter":{}}}") 14:48:28 VERB StateSwitch constructor(WechatyReady, "{"log":{"enableTimestamp":true,"logLevel":5,"prefixFilter":{}}}") 14:48:28 VERB Wechaty on(scan, function) registered 14:48:28 VERB Wechaty addListenerFunction(scan) 14:48:28 VERB Wechaty on(login, function) registered 14:48:28 VERB Wechaty addListenerFunction(login) 14:48:28 VERB Wechaty on(message, function) registered 14:48:28 VERB Wechaty addListenerFunction(message) 14:48:28 VERB Wechaty on(logout, function) registered 14:48:28 VERB Wechaty addListenerFunction(logout) 14:48:28 VERB Wechaty ()>(yjsBot) start() v0.40.10 is starting... 14:48:28 VERB Wechaty id: ckd5kwv3s0000pspv0c8t7mz2 14:48:28 SILL StateSwitch on() is false 14:48:28 SILL StateSwitch off() is true 14:48:28 VERB StateSwitch off(true) <- (true) 14:48:28 SILL StateSwitch on() is false 14:48:28 VERB StateSwitch on(pending) <- (false) 14:48:28 VERB MemoryCard constructor("yjsBot") 14:48:28 VERB MemoryCard getStorage() for storage type: N/A 14:48:28 VERB getStorage name: yjsBot, options: {"type":"file"} 14:48:28 VERB StorageFile constructor(yjsBot, ...) 14:48:28 VERB StorageBackend constructor(yjsBot, { type: file }) 14:48:28 VERB MemoryCard load() from storage: StorageFile 14:48:28 VERB StorageFile load() from D:\WorkSpace\EBKms_V4\yjsBot.memory-card.json 14:48:28 VERB MemoryCard load() file not exist, NOOP 14:48:28 VERB Puppet constructor() memory.load() done 14:48:28 VERB Wechaty initPuppet() Puppet#0() 14:48:28 VERB MemoryCard multiplex(puppet) 14:48:28 VERB MemoryCard static multiplex(MemoryCard, puppet) 14:48:28 VERB MemoryCard constructor({"name":"yjsBot","multiplex":{"name":"puppet","parent":{"options":{"name":"yjsBot"},"name":"yjsBot","payload":{},"multiplexNameList":[],"storage":{"name":"yjsBot","options":{"type":"file"},"absFileName":"D:\\WorkSpace\\EBKms_V4\\yjsBot.memory-card.json"}}}}) 14:48:28 VERB PuppetManager resolve({puppet: Puppet#0(), puppetOptions: undefined}) 14:48:28 VERB PuppetManager resolveInstance(Puppet#0()) 14:48:28 VERB Puppet setMemory() 14:48:28 VERB Wechaty initPuppetEventBridge(Puppet#0(yjsBot)) 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(friendship) (listenerCount:0) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(login) (listenerCount:0) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(logout) (listenerCount:0) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(message) (listenerCount:0) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(room-invite) (listenerCount:0) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(room-join) (listenerCount:0) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(room-leave) (listenerCount:0) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(room-topic) (listenerCount:0) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(scan) (listenerCount:0) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(dong) (listenerCount:0) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(error) (listenerCount:0) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(heartbeat) (listenerCount:1) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(ready) (listenerCount:0) registering... 14:48:28 VERB Wechaty initPuppetEventBridge() puppet.on(reset) (listenerCount:1) registering... 14:48:28 VERB Wechaty initAccessory(Puppet#0(yjsBot)) 14:48:28 SILL Accessory static set wechaty = "Wechaty#ckd5kwv3s0000pspv0c8t7mz2(yjsBot)>(yjsBot)" 14:48:28 SILL Accessory static set wechaty = "Wechaty#ckd5kwv3s0000pspv0c8t7mz2(yjsBot)>(yjsBot)" 14:48:28 SILL Accessory static set wechaty = "Wechaty#ckd5kwv3s0000pspv0c8t7mz2(yjsBot)>(yjsBot)" 14:48:28 SILL Accessory static set wechaty = "Wechaty#ckd5kwv3s0000pspv0c8t7mz2(yjsBot)>(yjsBot)" 14:48:28 SILL Accessory static set wechaty = "Wechaty#ckd5kwv3s0000pspv0c8t7mz2(yjsBot)>(yjsBot)" 14:48:28 SILL Accessory static set wechaty = "Wechaty#ckd5kwv3s0000pspv0c8t7mz2(yjsBot)>(yjsBot)" 14:48:28 SILL Accessory static set wechaty = "Wechaty#ckd5kwv3s0000pspv0c8t7mz2(yjsBot)>(yjsBot)" 14:48:28 SILL Accessory static set wechaty = "Wechaty#ckd5kwv3s0000pspv0c8t7mz2(yjsBot)>(yjsBot)" 14:48:28 SILL Accessory static set puppet = "Puppet#0(yjsBot)" 14:48:28 SILL Accessory static set puppet = "Puppet#0(yjsBot)" 14:48:28 SILL Accessory static set puppet = "Puppet#0(yjsBot)" 14:48:28 SILL Accessory static set puppet = "Puppet#0(yjsBot)" 14:48:28 SILL Accessory static set puppet = "Puppet#0(yjsBot)" 14:48:28 SILL Accessory static set puppet = "Puppet#0(yjsBot)" 14:48:28 SILL Accessory static set puppet = "Puppet#0(yjsBot)" 14:48:28 SILL Accessory static set puppet = "Puppet#0(yjsBot)" 14:48:28 INFO PuppetPadplus start() 14:48:28 SILL StateSwitch on() is false 14:48:28 VERB StateSwitch on(pending) <- (false) 14:48:28 VERB PadplusManager on(scan, function) registered 14:48:28 VERB PadplusManager on(login, function) registered 14:48:28 VERB PadplusManager on(message, function) registered 14:48:28 VERB PadplusManager on(ready, function) registered 14:48:28 VERB PadplusManager on(reset, function) registered 14:48:28 VERB PadplusManager on(heartbeat, function) registered 14:48:28 VERB PadplusManager on(logout, function) registered 14:48:28 VERB PadplusManager on(room-leave, function) registered 14:48:28 VERB PadplusManager on(error, function) registered 14:48:28 SILL PadplusManager start() 14:48:28 SILL GRPC_GATEWAY init() 14:48:28 SILL GRPC_GATEWAY initSelf() 14:48:28 SILL GRPC_GATEWAY initGrpcGateway() 14:48:28 INFO PadplusManager start grpc gateway failed for reason: Error: Try to connect to server timeout., retry start in 5 seconds. 14:48:33 SILL PadplusManager start() 14:48:33 SILL GRPC_GATEWAY init() 14:48:33 SILL GRPC_GATEWAY initSelf() 14:48:33 SILL GRPC_GATEWAY initGrpcGateway()

7. Additional context

Add any other context about the problem here.

[bug]

su-chang commented 4 years ago

Could you please delete the local file in your bot project which named xxxx.memory-card.json, and restart your bot again, and then you need to scan the QR code for login.