python-wechaty-getting-started icon indicating copy to clipboard operation
python-wechaty-getting-started copied to clipboard

Friendship.search方法还能用吗?

Open duanghuang opened this issue 3 years ago • 2 comments

运行

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就没成功过,想知道这个功能现在还能用吗?还是说不稳定?

duanghuang avatar Sep 04 '22 15:09 duanghuang

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

wj-Mcat avatar Sep 08 '22 08:09 wj-Mcat

there is my environment

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

duanghuang avatar Sep 14 '22 10:09 duanghuang