Skip to content

getContactCount 导致服务崩溃 #334

Description

@KAWATAAAAAA

1. Versions

  • What is your wechaty version?
    Answer: "@juzi/wechaty": "1.0.47"

  • What is your wechaty-puppet-padplus version?
    Answer: "@juzi/wechaty-puppet-padplus": "1.2.9",

  • What is your node version? (run node --version)
    Answer: v16.17.0

  • What os are you using
    Answer: Mac Os

2. Describe the bug

getContactCount 导致服务崩溃
image

生产环境不能开启 process.on uncaughtException , 这样会导致服务无法正确工作,崩溃后机器人无法使用,但nodejs进程还是正常的,导致无法感知到,并且正常重启, 这种内部错误 如何try catch ?

3. To Reproduce

  1. 正常登录机器人
  2. 崩溃

4. Expected behavior

能正常启动

5. Actual behavior

无法正常启动

6. Full Output Logs

Show Logs

7. Additional contex

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