New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot detect the the environment WECHATY_PUPPET v0.17.118 #1456

Closed
qhduan opened this Issue Jul 10, 2018 · 10 comments

Comments

Projects
None yet
3 participants
@qhduan
Copy link

qhduan commented Jul 10, 2018

Provide Your Network Information

  1. Where is the location of your server? (i.e. City, or In/Out China)
    China
  2. Which cloud platform(AliYun/Qcloud/DigitalOcean/etc) are you using?
    local PC

Run npm run doctor or wechaty run doctor(for docker user), paste output here

Expected behavior

wechaty run good

Actual behavior

start with latest docker image with WECHAT_PUPPET not work:

sudo docker run -it --rm -e WECHATY_LOG="silly" -e WECHATY_PUPPET="wechat4u" -e PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" --volume="$(pwd)":/bot zixia/wechaty:latest examples/starter-bot.js

Starting Wechaty v0.17.118 with Node.js v10.6.0 ...
Working directory: /bot
Please make sure you had installed all the NPM modules which is depended on your bot script.
Executing babel-node --presets @babel/env examples/starter-bot.js
10:49:40 SILL Config WECHATY_LOG set level to silly
10:49:40 INFO Config registering process.on("unhandledRejection") for development/debug
10:49:40 VERB Config constructor()
10:49:40 SILL Accessory #0<Wechaty> constructor()
10:49:40 VERB Wechaty contructor()
10:49:40 VERB MemoryCard constructor(default)
10:49:40 VERB StateSwitch constructor(name=Wechaty)
10:49:40 VERB Wechaty on(scan, function) registered
10:49:40 VERB Wechaty onFunction(scan)
10:49:40 VERB Wechaty on(login, function) registered
10:49:40 VERB Wechaty onFunction(login)
10:49:40 VERB Wechaty on(logout, function) registered
10:49:40 VERB Wechaty onFunction(logout)
10:49:40 VERB Wechaty on(message, function) registered
10:49:40 VERB Wechaty onFunction(message)
10:49:40 SILL Wechaty version() form development environment is not availble: ENOENT: no such file or directory, stat '/wechaty/dist/.git'
10:49:40 INFO Wechaty start() v0.17.118 is starting...
10:49:40 VERB Wechaty puppet: undefined
10:49:40 VERB Wechaty profile: default
10:49:40 VERB Wechaty id: cjjfkq09i00000ymsto5xzc6f
10:49:40 SILL StateSwitch <Wechaty> on() is false
10:49:40 SILL StateSwitch <Wechaty> on() is false
10:49:40 VERB StateSwitch <Wechaty> on(pending) <- (false)
10:49:40 VERB MemoryCard load() file: /bot/default.memory-card.json
10:49:40 VERB MemoryCard load() file not exist, NOOP
10:49:40 VERB Wechaty initPuppet() 
10:49:40 VERB Wechaty initPuppetResolver(undefined)
10:49:40 INFO Wechaty initPuppet() using puppet: default

same problem with WECHATY_HEAD

sudo docker run -it --rm -e WECHATY_LOG="silly" -e WECHATY_HEAD="wechat4u" -e PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" --volume="$(pwd)":/bot zixia/wechaty:latest examples/starter-bot.js

 __        __        _           _          
 \ \      / /__  ___| |__   __ _| |_ _   _  
  \ \ /\ / / _ \/ __| '_ \ / _` | __| | | | 
   \ V  V /  __/ (__| | | | (_| | |_| |_| | 
    \_/\_/ \___|\___|_| |_|\__,_|\__|\__, | 
                                     |___/  
____________________________________________________
            https://www.chatie.io
  ____                            _   _             
 / ___|___  _ __  _ __   ___  ___| |_(_)_ __   __ _ 
| |   / _ \| '_ \| '_ \ / _ \/ __| __| | '_ \ / _` |
| |__| (_) | | | | | | |  __/ (__| |_| | | | | (_| |
 \____\___/|_| |_|_| |_|\___|\___|\__|_|_| |_|\__, |
                                              |___/ 
  ____ _           _   ____        _       
 / ___| |__   __ _| |_| __ )  ___ | |_ ___ 
| |   | '_ \ / _` | __|  _ \ / _ \| __/ __|
| |___| | | | (_| | |_| |_) | (_) | |_\__ \
 \____|_| |_|\__,_|\__|____/ \___/ \__|___/
                                           

Starting Wechaty v0.17.118 with Node.js v10.6.0 ...
Working directory: /bot
Please make sure you had installed all the NPM modules which is depended on your bot script.
Executing babel-node --presets @babel/env examples/starter-bot.js
10:50:27 SILL Config WECHATY_LOG set level to silly
10:50:27 INFO Config registering process.on("unhandledRejection") for development/debug
10:50:27 VERB Config constructor()
10:50:28 SILL Accessory #0<Wechaty> constructor()
10:50:28 VERB Wechaty contructor()
10:50:28 VERB MemoryCard constructor(default)
10:50:28 VERB StateSwitch constructor(name=Wechaty)
10:50:28 VERB Wechaty on(scan, function) registered
10:50:28 VERB Wechaty onFunction(scan)
10:50:28 VERB Wechaty on(login, function) registered
10:50:28 VERB Wechaty onFunction(login)
10:50:28 VERB Wechaty on(logout, function) registered
10:50:28 VERB Wechaty onFunction(logout)
10:50:28 VERB Wechaty on(message, function) registered
10:50:28 VERB Wechaty onFunction(message)
10:50:28 SILL Wechaty version() form development environment is not availble: ENOENT: no such file or directory, stat '/wechaty/dist/.git'
10:50:28 INFO Wechaty start() v0.17.118 is starting...
10:50:28 VERB Wechaty puppet: undefined
10:50:28 VERB Wechaty profile: default
10:50:28 VERB Wechaty id: cjjfkr0vu00000ypcdu03j2ve
10:50:28 SILL StateSwitch <Wechaty> on() is false
10:50:28 SILL StateSwitch <Wechaty> on() is false
10:50:28 VERB StateSwitch <Wechaty> on(pending) <- (false)
10:50:28 VERB MemoryCard load() file: /bot/default.memory-card.json
10:50:28 VERB MemoryCard load() file not exist, NOOP
10:50:28 VERB Wechaty initPuppet() 
10:50:28 VERB Wechaty initPuppetResolver(undefined)
10:50:28 INFO Wechaty initPuppet() using puppet: default

But it's OK with 0.16 image

sudo docker run -it --rm -e WECHATY_LOG="silly" -e WECHATY_PUPPET="wechat4u" -e PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" --volume="$(pwd)":/bot zixia/wechaty:0.16 examples/starter-bot.js

 __        __        _           _          
 \ \      / /__  ___| |__   __ _| |_ _   _  
  \ \ /\ / / _ \/ __| '_ \ / _` | __| | | | 
   \ V  V /  __/ (__| | | | (_| | |_| |_| | 
    \_/\_/ \___|\___|_| |_|\__,_|\__|\__, | 
                                     |___/  
____________________________________________________
            https://www.chatie.io
  ____                            _   _             
 / ___|___  _ __  _ __   ___  ___| |_(_)_ __   __ _ 
| |   / _ \| '_ \| '_ \ / _ \/ __| __| | '_ \ / _` |
| |__| (_) | | | | | | |  __/ (__| |_| | | | | (_| |
 \____\___/|_| |_|_| |_|\___|\___|\__|_|_| |_|\__, |
                                              |___/ 
  ____ _           _   ____        _       
 / ___| |__   __ _| |_| __ )  ___ | |_ ___ 
| |   | '_ \ / _` | __|  _ \ / _ \| __/ __|
| |___| | | | (_| | |_| |_) | (_) | |_\__ \
 \____|_| |_|\__,_|\__|____/ \___/ \__|___/
                                           

Starting Wechaty v0.16.5 with Node.js v10.6.0 ...
Working directory: /bot
Please make sure you had installed all the NPM modules which is depended on your bot script.
Executing babel-node --presets env examples/starter-bot.js
10:49:08 SILL Config WECHATY_LOG set level to silly
10:49:08 INFO Config registering process.on("unhandledRejection") for development/debug
10:49:08 VERB Config constructor()
10:49:13 SILL Accessory #0<Wechaty> constructor()
10:49:13 VERB Wechaty contructor()
10:49:13 VERB MemoryCard constructor(default)
10:49:13 VERB StateSwitch constructor(name=Wechaty)
10:49:13 VERB Wechaty on(scan, function) registered
10:49:13 VERB Wechaty onFunction(scan)
10:49:13 VERB Wechaty on(login, function) registered
10:49:13 VERB Wechaty onFunction(login)
10:49:13 VERB Wechaty on(logout, function) registered
10:49:13 VERB Wechaty onFunction(logout)
10:49:13 VERB Wechaty on(message, function) registered
10:49:13 VERB Wechaty onFunction(message)
10:49:13 SILL Wechaty version() form development environment is not availble: ENOENT: no such file or directory, stat '/wechaty/dist/.git'
10:49:13 INFO Wechaty start() v0.16.5 is starting...
10:49:13 VERB Wechaty puppet: undefined
10:49:13 VERB Wechaty profile: default
10:49:13 VERB Wechaty id: cjjfkpfbo00000spe33gy4ycz
10:49:13 SILL StateSwitch <Wechaty> on() is false
10:49:13 SILL StateSwitch <Wechaty> on() is false
10:49:13 VERB StateSwitch <Wechaty> on(pending) <- (false)
10:49:13 VERB MemoryCard load() file: /bot/default.memory-card.json
10:49:13 VERB MemoryCard load() file not exist, NOOP
10:49:13 VERB Wechaty initPuppet(undefined)
10:49:13 VERB Wechaty initPuppetResolver(undefined)
10:49:13 INFO Wechaty initPuppet() using puppet: wechat4u

Steps to reproduce the behavior (and fixes, if any)

Full Output Logs

$ WECHATY_LOG=silly npm run ts-node mybot.ts

# or 

$ WECHATY_LOG=silly node dist/mybot.js
Show Logs

Paste the full output logs here with WECHATY_LOG=silly set

# PASTE FULL LOG OUTPUT AT HERE:

sudo docker run -it --rm -e WECHATY_LOG="silly" -e WECHATY_HEAD="wechat4u" -e PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" --volume="$(pwd)":/bot zixia/wechaty:latest examples/starter-bot.js

 __        __        _           _          
 \ \      / /__  ___| |__   __ _| |_ _   _  
  \ \ /\ / / _ \/ __| '_ \ / _` | __| | | | 
   \ V  V /  __/ (__| | | | (_| | |_| |_| | 
    \_/\_/ \___|\___|_| |_|\__,_|\__|\__, | 
                                     |___/  
____________________________________________________
            https://www.chatie.io
  ____                            _   _             
 / ___|___  _ __  _ __   ___  ___| |_(_)_ __   __ _ 
| |   / _ \| '_ \| '_ \ / _ \/ __| __| | '_ \ / _` |
| |__| (_) | | | | | | |  __/ (__| |_| | | | | (_| |
 \____\___/|_| |_|_| |_|\___|\___|\__|_|_| |_|\__, |
                                              |___/ 
  ____ _           _   ____        _       
 / ___| |__   __ _| |_| __ )  ___ | |_ ___ 
| |   | '_ \ / _` | __|  _ \ / _ \| __/ __|
| |___| | | | (_| | |_| |_) | (_) | |_\__ \
 \____|_| |_|\__,_|\__|____/ \___/ \__|___/
                                           

Starting Wechaty v0.17.118 with Node.js v10.6.0 ...
Working directory: /bot
Please make sure you had installed all the NPM modules which is depended on your bot script.
Executing babel-node --presets @babel/env examples/starter-bot.js
10:50:27 SILL Config WECHATY_LOG set level to silly
10:50:27 INFO Config registering process.on("unhandledRejection") for development/debug
10:50:27 VERB Config constructor()
10:50:28 SILL Accessory #0<Wechaty> constructor()
10:50:28 VERB Wechaty contructor()
10:50:28 VERB MemoryCard constructor(default)
10:50:28 VERB StateSwitch constructor(name=Wechaty)
10:50:28 VERB Wechaty on(scan, function) registered
10:50:28 VERB Wechaty onFunction(scan)
10:50:28 VERB Wechaty on(login, function) registered
10:50:28 VERB Wechaty onFunction(login)
10:50:28 VERB Wechaty on(logout, function) registered
10:50:28 VERB Wechaty onFunction(logout)
10:50:28 VERB Wechaty on(message, function) registered
10:50:28 VERB Wechaty onFunction(message)
10:50:28 SILL Wechaty version() form development environment is not availble: ENOENT: no such file or directory, stat '/wechaty/dist/.git'
10:50:28 INFO Wechaty start() v0.17.118 is starting...
10:50:28 VERB Wechaty puppet: undefined
10:50:28 VERB Wechaty profile: default
10:50:28 VERB Wechaty id: cjjfkr0vu00000ypcdu03j2ve
10:50:28 SILL StateSwitch <Wechaty> on() is false
10:50:28 SILL StateSwitch <Wechaty> on() is false
10:50:28 VERB StateSwitch <Wechaty> on(pending) <- (false)
10:50:28 VERB MemoryCard load() file: /bot/default.memory-card.json
10:50:28 VERB MemoryCard load() file not exist, NOOP
10:50:28 VERB Wechaty initPuppet() 
10:50:28 VERB Wechaty initPuppetResolver(undefined)
10:50:28 INFO Wechaty initPuppet() using puppet: default
10:50:28 VERB MemoryCard sub(default)
10:50:28 VERB MemoryCard static sub(MemoryCard<default>, default)
10:50:28 VERB MemoryCard constructor(default)
10:50:28 VERB PuppetConfig puppetResolver(default)
10:50:28 SILL PuppetConfig puppetResolver(default) exception: Cannot find module 'wechaty-puppet-puppeteer'
10:50:28 INFO PuppetConfig installPuppet(wechaty-puppet-puppeteer@^0.4) please wait ...
^C  ____  _   _  ____   ____  _____ ____   ___  ____ _____  
 | __ )| | | |/ ___| |  _ \| ____|  _ \ / _ \|  _ \_   _| 
 |  _ \| | | | |  _  | |_) |  _| | |_) | | | | |_) || |   
 | |_) | |_| | |_| | |  _ <| |___|  __/| |_| |  _ < | |   
 |____/ \___/ \____| |_| \_\_____|_|    \___/|_| \_\|_|   
                                                          
Press ENTER to continue ...


sudo docker run -it --rm -e WECHATY_LOG="silly" -e WECHATY_PUPPET="wechat4u" -e PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" --volume="$(pwd)":/bot zixia/wechaty:latest examples/starter-bot.js

 __        __        _           _          
 \ \      / /__  ___| |__   __ _| |_ _   _  
  \ \ /\ / / _ \/ __| '_ \ / _` | __| | | | 
   \ V  V /  __/ (__| | | | (_| | |_| |_| | 
    \_/\_/ \___|\___|_| |_|\__,_|\__|\__, | 
                                     |___/  
____________________________________________________
            https://www.chatie.io
  ____                            _   _             
 / ___|___  _ __  _ __   ___  ___| |_(_)_ __   __ _ 
| |   / _ \| '_ \| '_ \ / _ \/ __| __| | '_ \ / _` |
| |__| (_) | | | | | | |  __/ (__| |_| | | | | (_| |
 \____\___/|_| |_|_| |_|\___|\___|\__|_|_| |_|\__, |
                                              |___/ 
  ____ _           _   ____        _       
 / ___| |__   __ _| |_| __ )  ___ | |_ ___ 
| |   | '_ \ / _` | __|  _ \ / _ \| __/ __|
| |___| | | | (_| | |_| |_) | (_) | |_\__ \
 \____|_| |_|\__,_|\__|____/ \___/ \__|___/
                                           

Starting Wechaty v0.17.118 with Node.js v10.6.0 ...
Working directory: /bot
Please make sure you had installed all the NPM modules which is depended on your bot script.
Executing babel-node --presets @babel/env examples/starter-bot.js
10:49:40 SILL Config WECHATY_LOG set level to silly
10:49:40 INFO Config registering process.on("unhandledRejection") for development/debug
10:49:40 VERB Config constructor()
10:49:40 SILL Accessory #0<Wechaty> constructor()
10:49:40 VERB Wechaty contructor()
10:49:40 VERB MemoryCard constructor(default)
10:49:40 VERB StateSwitch constructor(name=Wechaty)
10:49:40 VERB Wechaty on(scan, function) registered
10:49:40 VERB Wechaty onFunction(scan)
10:49:40 VERB Wechaty on(login, function) registered
10:49:40 VERB Wechaty onFunction(login)
10:49:40 VERB Wechaty on(logout, function) registered
10:49:40 VERB Wechaty onFunction(logout)
10:49:40 VERB Wechaty on(message, function) registered
10:49:40 VERB Wechaty onFunction(message)
10:49:40 SILL Wechaty version() form development environment is not availble: ENOENT: no such file or directory, stat '/wechaty/dist/.git'
10:49:40 INFO Wechaty start() v0.17.118 is starting...
10:49:40 VERB Wechaty puppet: undefined
10:49:40 VERB Wechaty profile: default
10:49:40 VERB Wechaty id: cjjfkq09i00000ymsto5xzc6f
10:49:40 SILL StateSwitch <Wechaty> on() is false
10:49:40 SILL StateSwitch <Wechaty> on() is false
10:49:40 VERB StateSwitch <Wechaty> on(pending) <- (false)
10:49:40 VERB MemoryCard load() file: /bot/default.memory-card.json
10:49:40 VERB MemoryCard load() file not exist, NOOP
10:49:40 VERB Wechaty initPuppet() 
10:49:40 VERB Wechaty initPuppetResolver(undefined)
10:49:40 INFO Wechaty initPuppet() using puppet: default
10:49:40 VERB MemoryCard sub(default)
10:49:40 VERB MemoryCard static sub(MemoryCard<default>, default)
10:49:40 VERB MemoryCard constructor(default)
10:49:40 VERB PuppetConfig puppetResolver(default)
10:49:40 SILL PuppetConfig puppetResolver(default) exception: Cannot find module 'wechaty-puppet-puppeteer'
10:49:40 INFO PuppetConfig installPuppet(wechaty-puppet-puppeteer@^0.4) please wait ...
^C  ____  _   _  ____   ____  _____ ____   ___  ____ _____  
 | __ )| | | |/ ___| |  _ \| ____|  _ \ / _ \|  _ \_   _| 
 |  _ \| | | | |  _  | |_) |  _| | |_) | | | | |_) || |   
 | |_) | |_| | |_| | |  _ <| |___|  __/| |_| |  _ < | |   
 |____/ \___/ \____| |_| \_\_____|_|    \___/|_| \_\|_|   
                                                          
Press ENTER to continue ...



sudo docker run -it --rm -e WECHATY_LOG="silly" -e WECHATY_PUPPET="wechat4u" -e PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" --volume="$(pwd)":/bot zixia/wechaty:0.16 examples/starter-bot.js

 __        __        _           _          
 \ \      / /__  ___| |__   __ _| |_ _   _  
  \ \ /\ / / _ \/ __| '_ \ / _` | __| | | | 
   \ V  V /  __/ (__| | | | (_| | |_| |_| | 
    \_/\_/ \___|\___|_| |_|\__,_|\__|\__, | 
                                     |___/  
____________________________________________________
            https://www.chatie.io
  ____                            _   _             
 / ___|___  _ __  _ __   ___  ___| |_(_)_ __   __ _ 
| |   / _ \| '_ \| '_ \ / _ \/ __| __| | '_ \ / _` |
| |__| (_) | | | | | | |  __/ (__| |_| | | | | (_| |
 \____\___/|_| |_|_| |_|\___|\___|\__|_|_| |_|\__, |
                                              |___/ 
  ____ _           _   ____        _       
 / ___| |__   __ _| |_| __ )  ___ | |_ ___ 
| |   | '_ \ / _` | __|  _ \ / _ \| __/ __|
| |___| | | | (_| | |_| |_) | (_) | |_\__ \
 \____|_| |_|\__,_|\__|____/ \___/ \__|___/
                                           

Starting Wechaty v0.16.5 with Node.js v10.6.0 ...
Working directory: /bot
Please make sure you had installed all the NPM modules which is depended on your bot script.
Executing babel-node --presets env examples/starter-bot.js
10:49:08 SILL Config WECHATY_LOG set level to silly
10:49:08 INFO Config registering process.on("unhandledRejection") for development/debug
10:49:08 VERB Config constructor()
10:49:13 SILL Accessory #0<Wechaty> constructor()
10:49:13 VERB Wechaty contructor()
10:49:13 VERB MemoryCard constructor(default)
10:49:13 VERB StateSwitch constructor(name=Wechaty)
10:49:13 VERB Wechaty on(scan, function) registered
10:49:13 VERB Wechaty onFunction(scan)
10:49:13 VERB Wechaty on(login, function) registered
10:49:13 VERB Wechaty onFunction(login)
10:49:13 VERB Wechaty on(logout, function) registered
10:49:13 VERB Wechaty onFunction(logout)
10:49:13 VERB Wechaty on(message, function) registered
10:49:13 VERB Wechaty onFunction(message)
10:49:13 SILL Wechaty version() form development environment is not availble: ENOENT: no such file or directory, stat '/wechaty/dist/.git'
10:49:13 INFO Wechaty start() v0.16.5 is starting...
10:49:13 VERB Wechaty puppet: undefined
10:49:13 VERB Wechaty profile: default
10:49:13 VERB Wechaty id: cjjfkpfbo00000spe33gy4ycz
10:49:13 SILL StateSwitch <Wechaty> on() is false
10:49:13 SILL StateSwitch <Wechaty> on() is false
10:49:13 VERB StateSwitch <Wechaty> on(pending) <- (false)
10:49:13 VERB MemoryCard load() file: /bot/default.memory-card.json
10:49:13 VERB MemoryCard load() file not exist, NOOP
10:49:13 VERB Wechaty initPuppet(undefined)
10:49:13 VERB Wechaty initPuppetResolver(undefined)
10:49:13 INFO Wechaty initPuppet() using puppet: wechat4u
10:49:13 VERB Puppet constructor({"memory":{"name":"default","payload":{},"file":"/bot/default.memory-card.json"}})
10:49:13 VERB StateSwitch constructor(name=PuppetWechat4u)
10:49:13 VERB Puppet constructor() watchdog timeout set to 60 seconds
10:49:13 VERB HotImport callerResolve(., /wechaty/dist/src/puppet/puppet.js)
10:49:13 SILL HotImport callerResolve() callsites() file=/wechaty/node_modules/hot-import/dist/src/hot-import.js, type=Object
10:49:13 SILL HotImport callerResolve() callsites() file=/wechaty/dist/src/puppet/puppet.js, type=PuppetWechat4u
10:49:13 SILL HotImport callerResolve() callsites() file=/wechaty/dist/src/puppet-wechat4u/puppet-wechat4u.js, type=PuppetWechat4u
10:49:13 SILL HotImport callerResolve() callerFile=/wechaty/dist/src/puppet-wechat4u/puppet-wechat4u.js
10:49:13 VERB Puppet constructor() childClassPath=/wechaty/dist/src/puppet-wechat4u
10:49:13 VERB Wechaty initPuppetVersionSatisfy(Puppet#0<PuppetWechat4u>(default))
10:49:13 VERB Wechaty initPuppetSemverSatisfy(*)
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(friendship) registered
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(login) registered
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(logout) registered
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(message) registered
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(room-join) registered
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(room-leave) registered
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(room-topic) registered
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(scan) registered
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(dong) registered
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(error) registered
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(start) registered
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(stop) registered
10:49:13 VERB Wechaty initPuppetEventBridge() puppet.on(watchdog) registered
10:49:13 VERB Wechaty initAccessory(Puppet#0<PuppetWechat4u>(default))
10:49:13 SILL Accessory <Contact> static set wechaty = "Wechaty#cjjfkpfbo00000spe33gy4ycz<>(default)"
10:49:13 SILL Accessory <ContactSelf> static set wechaty = "Wechaty#cjjfkpfbo00000spe33gy4ycz<>(default)"
10:49:13 SILL Accessory <Friendship> static set wechaty = "Wechaty#cjjfkpfbo00000spe33gy4ycz<>(default)"
10:49:13 SILL Accessory <Message> static set wechaty = "Wechaty#cjjfkpfbo00000spe33gy4ycz<>(default)"
10:49:13 SILL Accessory <Room> static set wechaty = "Wechaty#cjjfkpfbo00000spe33gy4ycz<>(default)"
10:49:13 SILL Accessory <Contact> static set puppet = "Puppet#0<PuppetWechat4u>(default)"
10:49:13 SILL Accessory <ContactSelf> static set puppet = "Puppet#0<PuppetWechat4u>(default)"
10:49:13 SILL Accessory <Friendship> static set puppet = "Puppet#0<PuppetWechat4u>(default)"
10:49:13 SILL Accessory <Message> static set puppet = "Puppet#0<PuppetWechat4u>(default)"
10:49:13 SILL Accessory <Room> static set puppet = "Puppet#0<PuppetWechat4u>(default)"
10:49:13 SILL Accessory <Wechaty> set puppet = "Puppet#0<PuppetWechat4u>(default)"
10:49:13 VERB PuppetWechat4u start() with default
10:49:13 SILL StateSwitch <PuppetWechat4u> on() is false
10:49:13 VERB StateSwitch <PuppetWechat4u> on(pending) <- (false)
10:49:13 VERB MemoryCard get(puppet-wechat4u)
10:49:13 VERB PuppetWechat4u initHookEvents()
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █▄▀▀▄▄▄██▄▄▀▀██ ▄▄▄▄▄ █
█ █   █ ███▄█   ▄█▀▀▄██ █   █ █
█ █▄▄▄█ ██▄▀▄▀▄█▄ █▄▄██ █▄▄▄█ █
█▄▄▄▄▄▄▄█ █ ▀▄▀▄▀▄█ █▄█▄▄▄▄▄▄▄█
█▄ █ ▄▀▄██ ▄▄▀▀▄ █▄▀▀▀█▄▀▀█▀▀▄█
█   ▀ ▀▄▀█▀  ▀█  ▄▀▄▀ █▄▀▄▀▄█▀█
█ ▀ ██▀▄█▄▄█▄▄▀▀  ▀▀█▄▄  ▀▀▀▀ █
█▀▀█▀ █▄█ ▀█ ▄█▄▄▀▄█▄ ██ ▀█ █ █
█▀  ▀ █▄█▄▄▀▀▀    █▀  ▀█▄▀▄▀▀██
█  █ ▀▀▄ ▄▀█▄▀ █ ▄▄█  ▀ ▀█ ▀█▄█
█▄▄████▄█▀▀▄█▄▀█ ▄  ▀ ▄▄▄  ▄▄██
█ ▄▄▄▄▄ ██▄██▄█▀ ▄▀█  █▄█ ▄████
█ █   █ █  ▀█▀▄ ▀ ▀▀▄  ▄▄▄▄█▄▀█
█ █▄▄▄█ █▀ ▀█▀▀  ██▀▄▄ ▀▄ ▀ ▄ █
█▄▄▄▄▄▄▄█▄▄█▄▄█████▄▄▄█████████

https://api.qrserver.com/v1/create-qr-code/?data=https%3A%2F%2Flogin.weixin.qq.com%2Fl%2Fob1grT79yg%3D%3D&size=220x220&margin=20
^C Script terminated by Control-C 
   ____ _        _            ____  
  / ___| |_ _ __| |    _     / ___| 
 | |   | __| '__| |  _| |_  | |     
 | |___| |_| |  | | |_   _| | |___  
  \____|\__|_|  |_|   |_|    \____| 
                                    

 __        __        _           _          
 \ \      / /__  ___| |__   __ _| |_ _   _  
  \ \ /\ / / _ \/ __| '_ \ / _` | __| | | | 
   \ V  V /  __/ (__| | | | (_| | |_| |_| | 
    \_/\_/ \___|\___|_| |_|\__,_|\__|\__, | 
                                     |___/  
____________________________________________________
            https://www.chatie.io
  _____      _ _     _ _____  ___   
 | ____|_  _(_) |_  / |___ / / _ \  
 |  _| \ \/ / | __| | | |_ \| | | | 
 | |___ >  <| | |_  | |___) | |_| | 
 |_____/_/\_\_|\__| |_|____/ \___/  
                     

@huan

This comment has been minimized.

Copy link
Member

huan commented Jul 10, 2018

What does you mean "WECHAT_PUPPET not work"?

According to your log, it seems work without any problem.

@kis87988

This comment has been minimized.

Copy link
Contributor

kis87988 commented Jul 10, 2018

same here.
the WECHATY_PUPPET="padchat" will run in web, not padchat

@qhduan

This comment has been minimized.

Copy link

qhduan commented Jul 11, 2018

@zixia

looks like the latest docker image donot detect the the environment WECHATY_PUPPET

latest & WECHATY_PUPPET="wechat4u" →→ initPuppet() using puppet: default

latest & WECHATY_HEAD="wechat4u" →→ initPuppet() using puppet: default

0.16 & WECHATY_PUPPET="wechat4u" →→ Wechaty initPuppet() using puppet: wechat4u

@kis87988

This comment has been minimized.

Copy link
Contributor

kis87988 commented Jul 11, 2018

@qhduan
In the mean time,
You can do const bot: Wechaty = Wechaty.instance({puppet: 'padchat'}) in your code.

@huan

This comment has been minimized.

Copy link
Member

huan commented Jul 11, 2018

@qhduan Yes I see. Confirmed.

@huan huan added the bug label Jul 11, 2018

@huan huan changed the title The latest docker image don't recognize the WECHAT_PUPPET neither WECHAT_HEAD 0.17.118 latest docker image donot detect the the environment WECHATY_PUPPET v0.17.118 Jul 11, 2018

@huan huan changed the title latest docker image donot detect the the environment WECHATY_PUPPET v0.17.118 Cannot detect the the environment WECHATY_PUPPET v0.17.118 Jul 11, 2018

@huan

This comment has been minimized.

Copy link
Member

huan commented Jul 11, 2018

@qhduan It also affects the NPM, not only the docker.

huan added a commit that referenced this issue Jul 11, 2018

@huan

This comment has been minimized.

Copy link
Member

huan commented Jul 11, 2018

Should had been fixed on v0.17.120 or above.

Please test and let me know the result, thanks!

@kis87988

This comment has been minimized.

Copy link
Contributor

kis87988 commented Jul 11, 2018

docker working without problem! for v0.17.120

@huan

This comment has been minimized.

Copy link
Member

huan commented Jul 11, 2018

@kis87988 Thank you very much.

@qhduan Hope you can work without the problem too, and please close this issue if so.

@qhduan

This comment has been minimized.

Copy link

qhduan commented Jul 11, 2018

I have test the docker image with v0.17.122, the but has fixed

@qhduan qhduan closed this Jul 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment