wechaty / puppet-padlocal

Puppet PadLocal is a Pad Protocol for WeChat
https://wechaty.js.org/docs/puppet-providers/padlocal
Apache License 2.0
642 stars 88 forks source link

Error: unsupported type: 66 #131

Closed paulhybryant closed 2 years ago

paulhybryant commented 2 years ago

Got the following error when running the bot:

Error: unsupported type: 66 at Object.convertMessageType (/root/gitrepo/wechaty-getting-started/node_modules/wechaty-puppet-padlocal/src/padlocal/message-parser/helpers/message.ts:57:13) at Object.padLocalMessageToWechaty (/root/gitrepo/wechaty-getting-started/node_modules/wechaty-puppet-padlocal/src/padlocal/schema-mapper/index.ts:23:16) at PuppetPadlocal.messageRawPayloadParser (/root/gitrepo/wechaty-getting-started/node_modules/wechaty-puppet-padlocal/src/puppet-padlocal.ts:1230:12) at PuppetPadlocal.messagePayload (/root/gitrepo/wechaty-getting-started/node_modules/wechaty-puppet/src/puppet.ts:897:35) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at async WechatifiedMessage.ready (file:///root/gitrepo/wechaty-getting-started/node_modules/wechaty/src/user/message.ts:872:21) at async PuppetPadlocal. (file:///root/gitrepo/wechaty-getting-started/node_modules/wechaty/src/wechaty.ts:498:15)

suntong commented 2 years ago

what's the (sample) input data that causes the above error?

paulhybryant commented 2 years ago

It is a pat message

padlocal commented 2 years ago

fixed