wechaty / wechaty-puppet-padplus

DEPRECATED: One puppet based on iPad protocal for Wechaty
https://wechaty.js.org/docs/puppet-services/
315 stars 65 forks source link

ERR PuppetPadplus messageRawPayload([object Object]) manager.cacheManager.getMessage([object Object]) return nothing #192

Closed yo-huge closed 4 years ago

yo-huge commented 4 years ago

1. Versions

2. Describe the bug

When start a simple demo and receive a message, then report the error. But last Friday, it is normal.

And I find that the scan event has modify the arguments, the first arguments is a object, not string, but the document has not modify

import {Wechaty} from 'wechaty'
import QrcodeTerminal from 'qrcode-terminal'

const bot = Wechaty.instance()

bot
.on('scan', ({qrcode, status}) => {
    QrcodeTerminal.generate(qrcode, {
      small: true
    })
})

.on('login', user=>{
    console.log(`${user} login`)
})

.on('message', msg => {
    console.log(`msg : ${msg}`)
})

.start()
11:00:26 ERR PuppetPadplus messageRawPayload([object Object]) manager.cacheManager.getMessage([object Object]) return nothing.
(node:43929) UnhandledPromiseRejectionWarning: Error: no message rawPayload for message id [object Object]
    at PuppetPadplus.<anonymous> (/Users/huyi/Documents/mine/webot/node_modules/wechaty/node_modules/wechaty-puppet-padplus/src/puppet-padplus.ts:1162:13)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/huyi/Documents/mine/webot/node_modules/wechaty/node_modules/wechaty-puppet-padplus/dist/src/puppet-padplus.js:5:58)

3. To Reproduce

  1. run 'WECHATY_PUPPET=wechaty-puppet-padplus node start.js'
su-chang commented 4 years ago

Error: no message rawPayload for message id [object Object]

Could you provide more context logs about this error?

peterpan0708 commented 4 years ago

same error, can anyone handle this?

su-chang commented 4 years ago

Workaround: npm i wechaty@0.35.5