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

Friendship.search方法还能用吗? #84

Open
duanghuang opened this issue Sep 4, 2022 · 2 comments
Open

Friendship.search方法还能用吗? #84

duanghuang opened this issue Sep 4, 2022 · 2 comments

Comments

@duanghuang
Copy link

运行

contact: Contact = await self.Friendship.search( phone='183********' )
await contact.ready()

报这个错误

2022-09-02 13:54:14,474 - FriendShip - INFO - search() <<class 'abc.Friendship'>, None, 183********>
2022-09-02 13:54:14,976 - Wechaty - ERROR - internal error <'NoneType' object has no attribute 'ready'>

我运行Friendship.search就没成功过,想知道这个功能现在还能用吗?还是说不稳定?

@wj-Mcat
Copy link
Collaborator

wj-Mcat commented Sep 8, 2022

contact variable can be None, so you should check if it's valid.

If you can't search anything at all, so it's actually a bug. and you can give us more about your environment:

  • related package: pip list | grep wechaty
  • version of wechaty docker image

@duanghuang
Copy link
Author

there is my environment

wechaty                0.8.67
wechaty-grpc           0.20.19
wechaty-puppet         0.4.21
wechaty-puppet-service 0.8.10

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

2 participants