juzibot / wechaty-puppet-macpro

One puppet based on Mac WeChat for Wechaty.
Apache License 2.0
38 stars 10 forks source link

stuck after 'scan'-event #28

Closed Art-in-code closed 4 years ago

Art-in-code commented 4 years ago

echaty-puppet:0.16.1 wechaty: 0.29.1 wechaty-puppet-macpro 0.1.22 node: v10.15.0 OS Ubuntu 16.04

Nothing happens after qr-code has been scanned, it can stay at this stage more then half an hour. Here is a code and log.

const puppet = new PuppetMacpro({
    token
});

const bot = new Wechaty({
    puppet
});

bot.on('scan', (qrcode) => {
    const url = `https://api.qrserver.com/v1/create-qr-code/?data=${encodeURIComponent(
        qrcode)}`;
    console.log('Obtained QR code to scan for authorization %s', url);
})
    .on('message', msg => {
        console.log(`msg : ${msg}`)
    })
    .on('login', (...args) => console.log(`login with: ${args}`))
    .on('logout', (...args) => console.log(`logout with: ${args}`))
    .on('error', (...args) => console.log(`ERRORS: ${args}`))
    .start();

wc_macpro.log

su-chang commented 4 years ago

Just have a try now, we have resolved this issue. Thx.

Art-in-code commented 4 years ago

Thank you, now it works.