wechaty / wechaty-puppet-padchat

Padchat Puppet for Wechaty
https://www.npmjs.com/package/wechaty-puppet-padchat
Apache License 2.0
282 stars 46 forks source link

Error ocurred when trying to log in by QRCode #188

Closed tangxinyao closed 6 years ago

tangxinyao commented 6 years ago

I. Environment

II.Description

Hello guys I'm new to this project, and some problems happened to me today when I try to use this plugin to log in my wechat account by QRCode. Could anybody come to help solve this problem?

II.Error Stack

11:16:35 SILL PadchatRpc initWebSocket() ws.on(message): {"apiName":"WXQRCodeLogin","data":"%7B%22email%22%3A%22%22%2C%22external%22%3A%22%22%2C%22long_link_
11:16:35 ERR Config ###########################
11:16:35 ERR Config unhandledRejection: Error: PadchatRpc, WXQRCodeLogin, unknown status: -106 [object Promise]
11:16:35 ERR Config ###########################
11:16:35 ERR Config process.on(unhandledRejection) promise.catch(PadchatRpc, WXQRCodeLogin, unknown status: -106)
Config Error: PadchatRpc, WXQRCodeLogin, unknown status: -106
    at PadchatManager.<anonymous> (/Users/xinyaotang/workspace/lianyou-robot/node_modules/wechaty-puppet-padchat/dist/src/padchat-rpc.js:928:19)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/xinyaotang/workspace/lianyou-robot/node_modules/wechaty-puppet-padchat/dist/src/padchat-rpc.js:4:58)
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:228:7)
lijiarui commented 6 years ago

We had a workaround patch, see https://github.com/botorange/puppet-padchat-patch

Attention:

  1. Please make sure you wechaty-puppet-padchat version is v0.17.15 or later to use this patch.
  2. Using this patch may cause wechat account block.
lijiarui commented 6 years ago

-106 issue has been fixed. Update the latest code and have a try! I will close this issue then.