Skip to content
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

但当接收到 图片之后,报出如下错误,是我什么地方的配置有问题吗? #1

Open
JustinKyo opened this issue Dec 31, 2021 · 0 comments

Comments

@JustinKyo
Copy link

Demo运行起来之后,文本信息接收和发送都没问题,但当接收到 图片之后,报出如下错误,是我什么地方的配置有问题吗?

RECV: Message#Image[🗣Contact@👥Room<Kyo工会>]
1f
TypeError: Cannot read properties of undefined (reading 'name')
at getNameExtension (D:\gitlab_new_test\wechaty-puppet-xp-demo\node_modules\wechaty-puppet-xp\dist\cjs\src\pure-functions\image-decrypt.js:83:7)
at ImageDecrypt (D:\gitlab_new_test\wechaty-puppet-xp-demo\node_modules\wechaty-puppet-xp\dist\cjs\src\pure-functions\image-decrypt.js:16:27)
at PuppetXp.messageFile (D:\gitlab_new_test\wechaty-puppet-xp-demo\node_modules\wechaty-puppet-xp\dist\cjs\src\puppet-xp.js:354:71)
at WechatifiedUserClass.toFileBox (D:\gitlab_new_test\wechaty-puppet-xp-demo\node_modules\wechaty\dist\cjs\src\user-modules\message.js:785:51)
at WechatyImpl.onMessage (D:\gitlab_new_test\wechaty-puppet-xp-demo\main.js:112:38)
Error: ImageDecrypt fail
at ImageDecrypt (D:\gitlab_new_test\wechaty-puppet-xp-demo\node_modules\wechaty-puppet-xp\dist\cjs\src\pure-functions\image-decrypt.js:28:11)
at PuppetXp.messageFile (D:\gitlab_new_test\wechaty-puppet-xp-demo\node_modules\wechaty-puppet-xp\dist\cjs\src\puppet-xp.js:354:71)
at WechatifiedUserClass.toFileBox (D:\gitlab_new_test\wechaty-puppet-xp-demo\node_modules\wechaty\dist\cjs\src\user-modules\message.js:785:51)
at WechatyImpl.onMessage (D:\gitlab_new_test\wechaty-puppet-xp-demo\main.js:112:38)
Error: no Base64 data
at new FileBox (D:\gitlab_new_test\wechaty-puppet-xp-demo\node_modules\file-box\dist\cjs\src\file-box.js:412:27)
at Function.fromBase64 (D:\gitlab_new_test\wechaty-puppet-xp-demo\node_modules\file-box\dist\cjs\src\file-box.js:153:16)
at PuppetXp.messageFile (D:\gitlab_new_test\wechaty-puppet-xp-demo\node_modules\wechaty-puppet-xp\dist\cjs\src\puppet-xp.js:363:35)
at WechatifiedUserClass.toFileBox (D:\gitlab_new_test\wechaty-puppet-xp-demo\node_modules\wechaty\dist\cjs\src\user-modules\message.js:785:51)
at WechatyImpl.onMessage (D:\gitlab_new_test\wechaty-puppet-xp-demo\main.js:112:38)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant