juzibot / donut-tester

40 stars 4 forks source link

ERROR - internal error <'Contact' object has no attribute '_events'> #37

Closed why2lyj closed 4 years ago

why2lyj commented 4 years ago

Important:Please file the issue follow the template, or we won't help you to solve the problem.

1. Versions

2. Describe the bug

Event 'friendship' can't touch off

3. To Reproduce

bot = Wechaty().on('friendship', xxx_function)
await bot.start()

4. Expected behavior

5. Actual behavior

6. Full Output Logs

2020-08-07 15:11:41,323 - Wechaty - INFO - receive <friendship> event <EventFriendshipPayload(friendship_id='4737034829204869855')>
2020-08-07 15:11:41,323 - FriendShip - INFO - Friendship constructor 4737034829204869855
2020-08-07 15:11:41,325 - FriendShip - INFO - ready() sync the friendship payload
2020-08-07 15:11:41,404 - FriendShip - INFO - get hello message <添加好友测试> of friendship <FriendshipPayloadResponse(id='4737034829204869855', contact_id='wxid_vfvfj40w8j6z22', hello='添加好友测试', type=2, stranger='v1_320ddbe36f749accb5004445f5f617feb76de39d175d4fead70ee58cff3e69836adc2753aa9ea84756608ddeae13ad33@stranger', ticket='v4_000b708f0b0400000100000000003baf758d70799fd94cc0acfe2c5f1000000050ded0b020927e3c97896a09d47e6e9e0246e036c498b8591641bb7704b5c240d606ef3a112f11e788fb50fc98ea02236441728eeba3815a9376f05eac9baa2cd153f627b7bdc08e814da0f8b63b186cf2abc588a39899d174d98f7d74b7afea90aac2dd33d316cb5c634ab3e7db0e495c0aeddf6b5d18bc13@stranger', scene=30)>
2020-08-07 15:11:41,404 - Wechaty - ERROR - internal error <'Contact' object has no attribute '_events'>

7. Additional context

after Wechat PC client upgrade, this event can't touch off anymore

[bug]

su-chang commented 4 years ago

Thanks for your issue, please make sure it will happen in ts wechaty.

why2lyj commented 4 years ago

issue seems cause from python-wechaty, close this issue.