Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

企业人数过多时候,contact.find()无响应。在企业微信contact较少时候没有问题 #52

Open
softpeng opened this issue Mar 15, 2022 · 1 comment

Comments

@softpeng
Copy link

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

0. Report Issue Guide

  1. Please run the following command and check whether the problem has been fixed:
rm -rf package-lock.json
rm -rf node_modules
npm install
  1. Please search in FAQ List first, and make sure your problem has not been solved before.

  2. Please search in the issue first, and make sure your problem had not been reported before

1. Describe the bug

企业人数过多时候,contact.find()无响应。(在企业微信人数少时候没有问题)

2. To Reproduce

This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.

Steps to reproduce the behavior:

  1. run 'python demo-t.py' (attached)
  2. 当企业人数较多时候,代码执行至await bot.Contact.find(query=queryFilter) 无响应

3. Full Output Logs

Set env WECHATY_LOG=silly in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)

We need full log instead of log screenshot or log fragments!

Show Logs
2022-03-15 18:04:08,728 - Wechaty - INFO - init_puppet_event_bridge() <<wechaty_puppet_service.puppet.PuppetService object at 0x000001B242DB2E08>>
2022-03-15 18:04:08,730 - Wechaty - INFO - initPuppetEventBridge() puppet.on(dong) (listenerCount:1) registering...
2022-03-15 18:04:08,731 - Wechaty - INFO - initPuppetEventBridge() puppet.on(error) (listenerCount:1) registering...
2022-03-15 18:04:08,732 - Wechaty - INFO - initPuppetEventBridge() puppet.on(heart-beat) (listenerCount:1) registering...
2022-03-15 18:04:08,733 - Wechaty - INFO - initPuppetEventBridge() puppet.on(ready) (listenerCount:1) registering...
2022-03-15 18:04:08,734 - Wechaty - INFO - receive <reset> event <%s>
2022-03-15 18:04:08,734 - Wechaty - INFO - initPuppetEventBridge() puppet.on(reset) (listenerCount:0) registering...
2022-03-15 18:04:08,735 - Wechaty - INFO - initPuppetEventBridge() puppet.on(friendship) (listenerCount:1) registering...
2022-03-15 18:04:08,736 - Wechaty - INFO - initPuppetEventBridge() puppet.on(login) (listenerCount:1) registering...
2022-03-15 18:04:08,738 - Wechaty - INFO - initPuppetEventBridge() puppet.on(logout) (listenerCount:1) registering...
2022-03-15 18:04:08,738 - Wechaty - INFO - initPuppetEventBridge() puppet.on(message) (listenerCount:1) registering...
2022-03-15 18:04:08,739 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-invite) (listenerCount:1) registering...
2022-03-15 18:04:08,740 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-join) (listenerCount:1) registering...
2022-03-15 18:04:08,741 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-leave) (listenerCount:1) registering...
2022-03-15 18:04:08,742 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-topic) (listenerCount:1) registering...
2022-03-15 18:04:08,742 - Wechaty - INFO - initPuppetEventBridge() puppet.on(scan) (listenerCount:1) registering...
2022-03-15 18:04:08,743 - Wechaty - INFO - starting puppet ...
2022-03-15 18:04:08,744 - PuppetService - INFO - init puppet ...
2022-03-15 18:04:08,744 - PuppetService - INFO - fetching endpoint from chatie-server: https://api.chatie.io/v0/hosties/puppet_wxwork_xxxxx
2022-03-15 18:04:10,019 - PuppetService - DEBUG - endpoint from chatie-server : <ip:port>
2022-03-15 18:04:10,067 - PuppetService - INFO - starting the puppet ...
2022-03-15 18:04:12,913 - PuppetService - INFO - puppet has started ...
2022-03-15 18:04:12,914 - PuppetService - INFO - listening the event from the puppet ...
2022-03-15 18:04:15,317 - PuppetService - DEBUG - receive heartbeat info <{'data': '[object Object]', 'timeout': 120000}>
2022-03-15 18:04:29,974 - PuppetService - DEBUG - receive heartbeat info <{'data': '[object Object]'}>
2022-03-15 18:04:41,604 - PuppetService - DEBUG - receive login info <{'contactId': '1688853093257535'}>
2022-03-15 18:04:41,607 - wechaty.plugin - INFO - start the plugins ...
2022-03-15 18:04:43,630 - wechaty.plugin - INFO - ============================starting web service========================
2022-03-15 18:04:43,631 - wechaty.plugin - INFO - starting web service at endpoint: <{0.0.0.0}:{5000}>
2022-03-15 18:04:43,642 - wechaty.plugin - INFO - Endpoint | Methods            | Websocket | Rule
2022-03-15 18:04:43,643 - wechaty.plugin - INFO - -------- | ------------------ | --------- | -----------------------
2022-03-15 18:04:43,646 - wechaty.plugin - INFO - static   | GET, HEAD, OPTIONS | False     | /static/<path:filename>
2022-03-15 18:04:43,648 - wechaty.plugin - INFO - ============================web service has started========================
2022-03-15 18:04:43,650 - Wechaty - INFO - receive <login> event <EventLoginPayload(contact_id='1688853093257535')>
2022-03-15 18:04:43,674 - wechaty.plugin - INFO - shutdown trigger info ...........................
2022-03-15 18:04:43,870 - Contact - INFO - load contact <Contact <1688853093257535> <彭绍冬>>
2022-03-15 18:04:46,712 - PuppetService - DEBUG - receive heartbeat info <{'data': '[object Object]'}>
2022-03-15 18:04:46,718 - PuppetService - DEBUG - receive message info <{'messageId': '1143575'}>
2022-03-15 18:04:46,719 - Wechaty - DEBUG - receive <message> event <EventMessagePayload(message_id='1143575', type=None, from_id=None, filename=None, text=None, timestamp=None, room_id=None, to_id=None, mention_ids=None)>
2022-03-15 18:04:46,720 - Message - DEBUG - Message ready <Message <1143575> is not ready>
2022-03-15 18:04:47,910 - Contact - INFO - load contact <Contact <1688853107171931> <姚婉玲>>
 ------<以上省略约1500行,打印具体联系人信息>-----------------------------------------------------
2022-03-15 18:05:21,154 - Contact - INFO - load contact <Contact <1688858191237261> <郑佳骏>>
2022-03-15 18:05:21,206 - Contact - INFO - load contact <Contact <1688858191237299> <关文昊>>
2022-03-15 18:05:39,432 - Contact - INFO - find() <<class 'wechaty.wechaty.Contact'>, ContactQueryFilter(alias=None, id=None, name=None, weixin='wangyxas')>
2022-03-15 18:05:39,434 - Contact - INFO - find_all() <<class 'wechaty.wechaty.Contact'>, ContactQueryFilter(alias=None, id=None, name=None, weixin='wangyxas')>
2022-03-15 18:05:39,440 - PuppetService - DEBUG - receive ready info <{'data': 'ready'}>
2022-03-15 18:05:39,441 - PuppetService - DEBUG - receive heartbeat info <{'data': '[object Object]'}>
2022-03-15 18:05:39,442 - Wechaty - INFO - receive <ready> event <EventReadyPayload(data='ready')>
2022-03-15 18:05:39,443 - Wechaty - DEBUG - emit() event <["EventReadyPayload(data='ready')"]> <{}>

4. Additional context

Add any other context about the problem here.

[bug]
demo-t.zip

@su-chang
Copy link
Collaborator

企业人数具体数量是多少呢?

该问题在wechaty node版本中是否能复现?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants