padlocal/wechaty-puppet-padlocal-demo

stop后再start报错

Opened this issue · 0 comments

重启代码:
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)