Skip to content
程序喵华仔 edited this page Jul 26, 2018 · 3 revisions

Troubleshooting

This page contains a series of common challenges and troubleshooting tips when developing with WeChaty

Problem: docker pull cause "unauthorized: authentication required"

If you are updating docker and see the following message

docker pull zixia/wechaty
Password:
Using default tag: latest
latest: Pulling from zixia/wechaty
ad74af05f5a2: Downloading [==============================================>    ] 49.18 MB/52.61 MB
2b032b8bbe8b: Download complete
a9a5b35f6ead: Download complete
3245b5a1c52c: Downloading [=======>                                           ] 20.53 MB/131.9 MB
afa075743392: Download complete
9fb9f21641cd: Downloading
3f40ad2666bc: Waiting
49c0ed396b49: Waiting
eb4820b0bd7e: Waiting
d3cf3383b5b2: Waiting
b0af5c5b9be9: Waiting
89e861eacc55: Waiting
857060924f07: Waiting
977e837721ee: Waiting
f201bc5693d0: Waiting
a540f88cee7c: Waiting
217d4abcf4d3: Waiting
unauthorized: authentication required

Solution

do docker login

Problem: Chromium revision is not downloaded

21:19:23 INFO Wechaty v#git[fa966db] starting...
21:19:23 ERR PuppetWebBridge init() exception: AssertionError: Chromium revision is not downloaded. Run "npm install"
21:19:23 ERR PuppetWeb initBridge() exception: Chromium revision is not downloaded. Run "npm install"
21:19:23 INFO Bot error: AssertionError: Chromium revision is not downloaded. Run "npm install"
21:19:23 ERR PuppetWeb init() exception: AssertionError: Chromium revision is not downloaded. Run "npm install"
21:19:23 INFO Bot error: AssertionError: Chromium revision is not downloaded. Run "npm install"

Problem: QR Code is looks awful, I can't scan it

  1. If you use the 'qrcode-terminal', try adjust setting of qrcode-terminal
  2. Download the QR image yourself

Reference: https://github.com/Chatie/wechaty-getting-started/blob/master/examples/starter-bot.js