Open linpan opened 2 years ago
Can you give more info about the error?
event_name
So I can help you fix this problem.
tokenType: puppetpaimon****
receive
code status 36 sometime 31. you should debug code status from where.
now, I directly edit event.py, add some fields(code, msg, data.....) avoid exception /Users/hiro/Library/Caches/pypoetry/virtualenvs/dichat-Yf_2revS-py3.8/lib/python3.8/site-packages/wechaty_puppet/schemas/event.py
This problem has been fixed by the new commit for wechaty-puppet
. So you can upgrade the wechaty-puppet
package to avoid this issue.
payload = EventErrorPayload(**payload_data) | TypeError: __init__() got an unexpected keyword argument 'code'
@dataclass class EventErrorPayload(EventPayloadBase): data: str sees: /wechaty_puppet/schemas/event.py