Skip to content

when i try to run bot.Contact.find,get some error. #16

Open
@fangjiyuan

Description

@fangjiyuan

2021-09-28 16:42:08,275 - RoomBot - ERROR - should ready() the ContactSelf payload before get it, please call the <ready()> method
Traceback (most recent call last):
File "d:\github\python-wechaty-puppet-itchat\examples\hotreload_bot.py", line 140, in send_report
contact = await bot.Contact.find(query=ContactQueryFilter(name=str3))
File "D:\ProgramData\Anaconda3\envs\py37\lib\site-packages\wechaty\user\contact.py", line 110, in find
contact_list = await cls.find_all(query)
File "D:\ProgramData\Anaconda3\envs\py37\lib\site-packages\wechaty\user\contact.py", line 158, in find_all
contacts
File "D:\ProgramData\Anaconda3\envs\py37\lib\site-packages\wechaty\user\contact.py", line 152, in
lambda x: x.payload and (
File "D:\ProgramData\Anaconda3\envs\py37\lib\site-packages\wechaty\accessory.py", line 80, in payload
type(self).name
ValueError: should ready() the ContactSelf payload before get it, please call the <ready()> method

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions