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

[BUG]WorkPro: 无法获取分享链接的url #230

Closed
ZhangRaymond opened this issue Jul 17, 2023 · 10 comments
Closed

[BUG]WorkPro: 无法获取分享链接的url #230

ZhangRaymond opened this issue Jul 17, 2023 · 10 comments
Assignees
Labels
workpro Wechaty Puppet Service WorkPro

Comments

@ZhangRaymond
Copy link

Please make sure you have read the Wechaty Puppet Service: WorkPro from Wechaty Official Website before you continue writing this issue.

IMPORTANT

DO NOT post your token in the issue. If we need to investigate the behavior of certain token, we will provide a private contact route.

Describe the bug
在用测试token进行开发时,在登录过程中报Warning:there is not registed blueprint in the plugins, so bot will not start the web service。导致在对URL和小程序信息提取url过程中会报错,即 await msg.to_url_link() 和 to_mini_program() 时报错,traceback如下图,无法获取message_url对应的pyload,怀疑原因为前面warning信息对应的blueprint无法被注册导致未能联网。
请问该如何解决?

Info

  • Platform[e.g. Windows/Mac/Linux]: Mac和linux均有这个问题
  • Runtime version[e.g. node/JAVA]: python
  • Wechaty version: 0.10.7
  • Wechaty Puppet version: 0.4.23

Screenshots
WechatIMG208

@ZhangRaymond ZhangRaymond added the workpro Wechaty Puppet Service WorkPro label Jul 17, 2023
@su-chang
Copy link
Member

@ZhangRaymond 接收到卡片链接消息后,在nodejs中需要调用message.toUrlLink()来获取对应的数据。

你可以参考python-wechaty的调用方法。

如果怀疑blueprint有疑问,可以在对应的repo中提issue哈。

@ZhangRaymond
Copy link
Author

@su-chang 感谢回复~ 实际上我也是这么做的,在调用msg.to_url_link() 和 msg.to_mini_program() 提取数据时报错。我在python-wechaty里提了issue,目前还没有回复,如果方便的话,辛苦提醒下相关开发同学吧,比较急
wechaty/python-wechaty#411

@su-chang
Copy link
Member

获取卡片链接和小程序的消息数据属于相对基础的功能,建议你用简单的python-wechaty的代码启动项目,并仅做这两类消息处理,看看是否仍存在报错。

不要安装一些其他插件,这样更容易定位问题。

BTW, python-wechaty是由社区开发者来维护的,一切交流都在issue中进行。我们这边也没有特殊的沟通渠道。

@LLSean
Copy link

LLSean commented Jul 19, 2023

请问解决了吗?我在解析公众号的链接的时候也遇到了同样的问题

@ZhangRaymond
Copy link
Author

请问解决了吗?我在解析公众号的链接的时候也遇到了同样的问题

没人解决,准备弃了。。。

@ZhangRaymond
Copy link
Author

获取卡片链接和小程序的消息数据属于相对基础的功能,建议你用简单的python-wechaty的代码启动项目,并仅做这两类消息处理,看看是否仍存在报错。

不要安装一些其他插件,这样更容易定位问题。

BTW, python-wechaty是由社区开发者来维护的,一切交流都在issue中进行。我们这边也没有特殊的沟通渠道。

@su-chang 照做了,还是不行,始终无法成功执行msg.to_url_link() 。开源社区也发了issue也没有反馈

@hcfw007
Copy link
Member

hcfw007 commented Jul 20, 2023

如果可能建议使用node开发wechaty相关项目。

@su-chang
Copy link
Member

@ZhangRaymond node中是否有遇到类似问题?

@LLSean
Copy link

LLSean commented Jul 27, 2023

使用node版本是没有问题的,建议用node版本吧

@hcfw007
Copy link
Member

hcfw007 commented Aug 10, 2023

长时间没有后续回复,问题关闭。

@hcfw007 hcfw007 closed this as completed Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
workpro Wechaty Puppet Service WorkPro
Projects
None yet
Development

No branches or pull requests

4 participants