Closed mrtoorich closed 4 years ago
Thanks for your issue, I have found that your params of MiniProgram is not right.
Example
const miniProgram = new MiniProgram({
appid : 'gh_0aa444a25adc',
title : '我正在使用Authing认证身份,你也来试试吧',
pagePath : 'routes/explore.html',
description : '身份管家',
thumbUrl : '30590201000452305002010002041092541302033d0af802040b30feb602045df0c2c5042b777875706c6f61645f31373533353339353230344063686174726f6f6d3131355f313537363035393538390204010400030201000400',
thumbKey : '42f8609e62817ae45cf7d8fefb532e83',
})
If you want to send one MiniProgram message, it's hard to get the params thumbUrl
and thumbKey
by yourself.
Suggestion
Please send the MiniProgram which you want the bot send to the bot firstly, and then you can get the params thumbUrl
and thumbKey
from the received MinProgram message.
Copy them to your code, and then you could send it successfully.
Awesome! It works! Thank you! ❤️
0. Report Issue Guide
1. Versions
What is your wechaty version? Answer: 0.32.2
What is your wechaty-puppet-macpro version? Answer: 0.4.0
What is your node version? (run
node --version
) Answer: 13.8.0What os are you using Answer: macOS
2. Describe the bug
Give a clear and concise description of what the bug is.
The mini program was sent, but the mini program couldn't be opened. When I click the mini program card, the error message
加载小程序信息超时,无法启动 (4,-10005)
showed.3. To Reproduce
This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.
Steps to reproduce the behavior:
4. Expected behavior
Give a clear and concise description of what you expected to happen.
The mini program should be opened.
5. Actual behavior
If applicable, add screenshots to help explain your problem. But do not paste log screenshots here.
A error showed, with message '加载小程序信息超时,无法启动 (4,-10005)'.
6. Full Output Logs
Set env
WECHATY_LOG=silly
in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)We need full log instead of log screenshot or log fragments!
Show Logs
```shell $ WECHATY_LOG=silly node yourbot.js Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages Answer: 23:53:02 SILL Config WECHATY_LOG set level to silly 23:53:02 INFO Config registering process.on("unhandledRejection") for development/debug 23:53:02 VERB Config constructor() 23:53:04 VERB Puppet constructor({"token":"puppet_macpro_04ba0ca66f731f48"}) #0 23:53:04 VERB StateSwitch constructor(name=PuppetMacpro) 23:53:04 VERB MemoryCard constructor(undefined) 23:53:04 VERB MemoryCard getStorage() for storage type: N/A 23:53:04 VERB MemoryCard load() from storage: N/A 23:53:04 VERB MemoryCard load() no storage 23:53:04 VERB Puppet constructor() watchdog timeout set to 60 seconds 23:53:04 VERB HotImport callerResolve(., /Users/huachen/Dev/xiaoke/wechaty-demo/node_modules/_wechaty-puppet@0.20.2@wechaty-puppet/dist/src/puppet.js) 23:53:04 SILL HotImport callerResolve() callsites() file=/Users/huachen/Dev/xiaoke/wechaty-demo/node_modules/_hot-import@0.2.14@hot-import/dist/src/hot-import.js, type=Object 23:53:04 SILL HotImport callerResolve() callsites() file=/Users/huachen/Dev/xiaoke/wechaty-demo/node_modules/_wechaty-puppet@0.20.2@wechaty-puppet/dist/src/puppet.js, type=null 23:53:04 SILL HotImport callerResolve() callsites() file=/Users/huachen/Dev/xiaoke/wechaty-demo/node_modules/_wechaty-puppet-macpro@0.4.0@wechaty-puppet-macpro/dist/src/puppet-macpro.js, type=null 23:53:04 SILL HotImport callerResolve() callerFile=/Users/huachen/Dev/xiaoke/wechaty-demo/node_modules/_wechaty-puppet-macpro@0.4.0@wechaty-puppet-macpro/dist/src/puppet-macpro.js 23:53:04 VERB Puppet constructor() childClassPath=/Users/huachen/Dev/xiaoke/wechaty-demo/node_modules/_wechaty-puppet-macpro@0.4.0@wechaty-puppet-macpro/dist/src 23:53:04 SILL Accessory #07. Additional context
Add any other context about the problem here.
[bug]