Skip to content

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

Open

Description

@duanghuang

运行

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

Activity

  1. wj-Mcat commented on Sep 8, 2022

    @wj-Mcat
    Collaborator

    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
  2. duanghuang commented on Sep 14, 2022

    @duanghuang
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions