Closed lightlizm closed 3 years ago
const bot = new Wechaty({
puppet: 'wechaty-puppet-service',
puppetOptions: {
token,
}
});
尝试用这个puppet启动wechaty,可以更新下wechaty的版本。
目前反馈的问题属于偶现的情况,等待一会即可自动恢复的。
const bot = new Wechaty({ puppet: 'wechaty-puppet-service', puppetOptions: { token, } });
尝试用这个puppet启动wechaty,可以更新下wechaty的版本。
目前反馈的问题属于偶现的情况,等待一会即可自动恢复的。
之前一直跑 "wechaty": "^0.50.7";
昨天出现发不出消息后,已经按https://github.com/juzibot/wxwork-tester/issues/31升级到wechaty@0.57.19,还是报一样的错误。有没有可能我的token受限呢?
可以把token发给juzi bot,我们这边看下。
已处理
1. Describe the bug
报错 :Error: LAUNCH_TIMEOUT: login launch wxwork timeout
"wechaty": "^0.50.7"
今早发现wxwork发送图片和文字都断断续续失败,最后退出了企业微信,后台Token列表处重置了。 接着再运行程序,就报LAUNCH_TIMEOUT: login launch wxwork timeout
运行日志如下: C:\nodejs\wechaty-wxwork>set WECHATY_LOG=silly
C:\nodejs\wechaty-wxwork>node index.js 16:15:59 SILL Puppet Config: WECHATY_LOG set level to silly 16:16:00 INFO Config registering process.on("unhandledRejection") for developmen t/debug 16:16:00 VERB Config constructor() 16:16:00 VERB Wechaty constructor() 16:16:00 VERB StateSwitch constructor(Wechaty, "{"log":{"enableTimestamp":true," logLevel":5,"prefixFilter":{}}}") 16:16:00 VERB StateSwitch constructor(WechatyReady, "{"log":{"enableTimestamp":t rue,"logLevel":5,"prefixFilter":{}}}") 16:16:00 VERB Wechaty on(scan, listener) registering... listenerCount: 0 16:16:00 VERB Wechaty on(login, listener) registering... listenerCount: 0 16:16:00 VERB Wechaty on(message, listener) registering... listenerCount: 0 16:16:00 VERB Wechaty on(room-join, listener) registering... listenerCount: 0 16:16:00 VERB Wechaty() start() v0.50.7 is starting...
16:16:00 VERB Wechaty id: ckqhrzni70000eskg7vq0b6qn
16:16:00 SILL StateSwitch on() is false
16:16:00 SILL StateSwitch off() is true
16:16:00 VERB StateSwitch off(true) <- (true)
16:16:00 SILL StateSwitch on() is false
16:16:00 VERB StateSwitch on(pending) <- (false)
16:16:00 VERB MemoryCard constructor(undefined)
16:16:00 VERB MemoryCard getStorage() for storage type: N/A
16:16:00 VERB MemoryCard load() from storage: N/A
16:16:00 VERB MemoryCard load() no storage
16:16:00 VERB Wechaty initPuppet() wechaty-puppet-hostie
16:16:00 VERB MemoryCard multiplex(puppet)
16:16:00 VERB MemoryCard static multiplex(MemoryCard<>, puppet)
16:16:00 VERB MemoryCard constructor({"multiplex":{"name":"puppet","parent":{"pa
yload":{},"multiplexNameList":[]}}})
16:16:00 VERB PuppetManager resolve({puppet: wechaty-puppet-hostie, puppetOption
s: {"token":"puppet_wxwork_c7c23cd26e0xxxxxxx"}})
16:16:00 VERB PuppetManager resolveName(wechaty-puppet-hostie)
16:16:00 VERB PuppetManager checkModule(wechaty-puppet-hostie)
16:16:00 SILL PuppetManager checkModule() wechaty-puppet-hostie installed versio
n 0.11.13 satisfied range *
16:16:00 VERB Puppet constructor({"token":"puppet_wxwork_c7c23cd2xxxxxx"}) #0
16:16:00 VERB StateSwitch constructor(PuppetHostie, "{"log":{"enableTimestamp":t
rue,"logLevel":5,"prefixFilter":{}}}")
16:16:00 VERB MemoryCard constructor(undefined)
16:16:00 VERB MemoryCard getStorage() for storage type: N/A
16:16:00 VERB MemoryCard load() from storage: N/A
16:16:00 VERB MemoryCard load() no storage
16:16:00 VERB Puppet constructor() watchdog timeout set to 60 seconds
16:16:00 VERB HotImport callerResolve(., C:\nodejs\wechaty-wxwork\node_modules\w
echaty-puppet\dist\src\puppet.js)
16:16:00 SILL HotImport callerResolve() callsites() file=C:\nodejs\wechaty-wxwor
k\node_modules\hot-import\dist\src\hot-import.js, type=Object
16:16:00 SILL HotImport callerResolve() callsites() file=C:\nodejs\wechaty-wxwor
k\node_modules\wechaty-puppet\dist\src\puppet.js, type=null
16:16:00 SILL HotImport callerResolve() callsites() file=C:\nodejs\wechaty-wxwor
k\node_modules\wechaty-puppet-hostie\dist\src\client\puppet-hostie.js, type=null
16:16:00 SILL HotImport callerResolve() callerFile=C:\nodejs\wechaty-wxwork\node modules\wechaty-puppet-hostie\dist\src\client\puppet-hostie.js 16:16:00 VERB Puppet constructor() childClassPath=C:\nodejs\wechaty-wxwork\node modules\wechaty-puppet-hostie\dist\src\client 16:16:00 VERB Puppet setMemory() 16:16:00 VERB Wechaty initPuppetEventBridge(Puppet#0())
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(friendship) (listenerCou
nt:0) registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(login) (listenerCount:0)
registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(logout) (listenerCount:0
) registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(message) (listenerCount:
0) registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(room-invite) (listenerCo
unt:0) registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(room-join) (listenerCoun
t:0) registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(room-leave) (listenerCou
nt:0) registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(room-topic) (listenerCou
nt:0) registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(scan) (listenerCount:0)
registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(dirty) (listenerCount:0)
registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(dong) (listenerCount:0)
registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(error) (listenerCount:0)
registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(heartbeat) (listenerCoun
t:0) registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(ready) (listenerCount:0)
registering...
16:16:00 VERB Wechaty initPuppetEventBridge() puppet.on(reset) (listenerCount:0)
registering...
16:16:00 VERB Wechaty wechatifyUserModules(Puppet#0())
16:16:00 VERB PuppetHostie start()
16:16:00 SILL StateSwitch on() is false
16:16:00 SILL StateSwitch on() is false
16:16:00 VERB StateSwitch on(pending) <- (false)
16:16:00 VERB PuppetHostie startGrpcClient()
16:16:00 VERB PuppetHostie discoverHostieIp(puppet_wxwork_c7cxxxxxxxxxx)
16:16:01 VERB PuppetHostie startGrpcStream()
16:16:01 SILL StateSwitch on() is pending
16:16:01 VERB StateSwitch on(true) <- (pending)
16:16:01 VERB Wechaty on(heartbeat, listener) registering... listenerCount: 0
16:16:01 SILL StateSwitch on() is pending
16:16:01 VERB StateSwitch on(true) <- (pending)
16:16:14 VERB PuppetHostie onGrpcStreamEvent({type:EVENT_TYPE_HEARTBEAT(1), payl
oad:"{"data":"[object Object]"}"})
16:16:23 SILL Wechaty memoryCheck() free: 725 MB, require: 4 MB
16:16:28 VERB PuppetHostie onGrpcStreamEvent({type:EVENT_TYPE_ERROR(16), payload
:"{"data":"LAUNCH_TIMEOUT: login launch wxwork timeout"}"})
16:16:28 SILL Wechaty memoryCheck() free: 706 MB, require: 4 MB
16:16:28 ERR Config ###########################
16:16:28 ERR Config uncaughtException: Error: LAUNCH_TIMEOUT: login launch wxwor
k timeout
at PuppetHostie.puppet.on.payload (C:\nodejs\wechaty-wxwork\node_modules\wec
haty\dist\src\wechaty.js:271:44)
at PuppetHostie.emit (events.js:182:13)
at PuppetHostie.EventEmitter.emit (domain.js:441:20)
at PuppetHostie.onGrpcStreamEvent (C:\nodejs\wechaty-wxwork\node_modules\wec
haty-puppet-hostie\dist\src\client\puppet-hostie.js:246:22)
at ClientReadableStream.emit (events.js:182:13)
at ClientReadableStream.EventEmitter.emit (domain.js:441:20)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at ClientReadableStream.Readable.push (_stream_readable.js:219:10)
at Object.onReceiveMessage (C:\nodejs\wechaty-wxwork\node_modules\grpc\src\c
lient_interceptors.js:1263:19)
at InterceptingListener.recvMessageWithContext (C:\nodejs\wechaty-wxwork\nod
e_modules\grpc\src\client_interceptors.js:607:19)
at C:\nodejs\wechaty-wxwork\node_modules\grpc\src\client_interceptors.js:707
:14 undefined
16:16:28 ERR Config ###########################
Error: LAUNCH_TIMEOUT: login launch wxwork timeout
at PuppetHostie.puppet.on.payload (C:\nodejs\wechaty-wxwork\node_modules\wec
haty\dist\src\wechaty.js:271:44)
at PuppetHostie.emit (events.js:182:13)
at PuppetHostie.EventEmitter.emit (domain.js:441:20)
at PuppetHostie.onGrpcStreamEvent (C:\nodejs\wechaty-wxwork\node_modules\wec
haty-puppet-hostie\dist\src\client\puppet-hostie.js:246:22)
at ClientReadableStream.emit (events.js:182:13)
at ClientReadableStream.EventEmitter.emit (domain.js:441:20)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at ClientReadableStream.Readable.push (_stream_readable.js:219:10)
at Object.onReceiveMessage (C:\nodejs\wechaty-wxwork\node_modules\grpc\src\c
lient_interceptors.js:1263:19)
at InterceptingListener.recvMessageWithContext (C:\nodejs\wechaty-wxwork\nod
e_modules\grpc\src\client_interceptors.js:607:19)
at C:\nodejs\wechaty-wxwork\node_modules\grpc\src\client_interceptors.js:707
:14
C:\nodejs\wechaty-wxwork>