wechaty / puppet-padlocal

Puppet PadLocal is a Pad Protocol for WeChat
https://wechaty.js.org/docs/puppet-providers/padlocal
Apache License 2.0
629 stars 88 forks source link

stop()后再start()报错 #186

Open sfw0807 opened 2 years ago

sfw0807 commented 2 years ago

重启代码: await bot.logout(); await bot.stop(); await bot.start(); 报错: WARNING: You are running multiple PadLocal client instances for the same token, this may cause unexpected behaviors. Shutdown others and keep only one instance per token, then retry.

05:24:06 ERR [Request] [tid:b924167a], padlocal grpc request failed: 1, error: Error: 2 UNKNOWN: [tid:b924167a] multiple padlocal instance per token error 05:24:06 WARN [LongLink] [203.205.254.91:80] close connection on error,IOError: Exception while packing long link data: [tid:b924167a] request has been cancelled for reason: SERVER_ERROR: 2 UNKNOWN: [tid:b924167a] multiple padlocal instance per token error 05:24:06 WARN [LongLink] longlink reconnect [1] after delay:1000ms 05:24:06 ERR [Request] [tid:57460faa], padlocal grpc request failed: 3, error: IOError: [tid:57460faa] Exception while handling wechat request: [tid:b924167a] request has been cancelled for reason: SERVER_ERROR: 2 UNKNOWN: [tid:b924167a] multiple padlocal instance per token error 05:24:06 ERR start client failed: VError: [tid:57460faa] request has been cancelled for reason: CLIENT_ERROR: [tid:57460faa] Exception while handling wechat request: [tid:b924167a] request has been cancelled for reason: SERVER_ERROR: 2 UNKNOWN: [tid:b924167a] multiple padlocal instance per token error at Request._failAllPendingRequest (/root/wechaty-puppet-padlocal/node_modules/padlocal-client-ts/src/Request.ts:338:15)

feqiqi commented 1 year ago

请问您解决了么

kaihungc1993 commented 1 year ago

Any update on this one?

435364745 commented 1 year ago

@kaihungc1993 are you solved this question?

cwm411 commented 9 months ago

+1

kaihungc1993 commented 9 months ago

If I understand it correctly, multiple padlocal instance per token error probably means that we can't have multiple wechaty instances using the same token.