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

安卓手机 / 安卓平板 调用 bot.getSystemMsg() 报错 #173

Closed
1 task done
Steve-xmh opened this issue Jun 19, 2021 · 0 comments
Closed
1 task done

安卓手机 / 安卓平板 调用 bot.getSystemMsg() 报错 #173

Steve-xmh opened this issue Jun 19, 2021 · 0 comments
Labels
bug Something isn't working confirmed Confirmed by maintainers

Comments

@Steve-xmh
Copy link
Contributor

Steve-xmh commented Jun 19, 2021

  • 你的操作系统: Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1036-raspi aarch64)?

  • 你的Node.js版本: v16.3.0

  • 使用的程序版本: v1.17.3

  • 使用的协议: 安卓手机 / 安卓平板

  • 我已确认过官方客户端不存在此问题,库的行为存在问题。

问题描述

在机器人登录上线之后调用了 bot.getSystemMsg() 返回如下数据:

{
  retcode: 100,
  data: null,
  status: 'failed',
  error: { code: -1, message: "Cannot read property '50' of undefined" }
}

详细日志

[2021-06-19T17:10:36.738] [DEBUG] [Android:123456789] - TypeError: Cannot read property '50' of undefined
    at /home/ubuntu/programs/neonbot/node_modules/oicq/lib/core/sysmsg.js:206:22
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 0)
    at async Client.getSysMsg (/home/ubuntu/programs/neonbot/node_modules/oicq/lib/core/sysmsg.js:233:5)
    at async Client._useProtocol (/home/ubuntu/programs/neonbot/node_modules/oicq/lib/client.js:175:25)
    at MessagePort.<anonymous> (/home/ubuntu/programs/neonbot/src/worker.ts:507:39)
@takayama-lily takayama-lily added bug Something isn't working confirmed Confirmed by maintainers labels Jun 19, 2021
takayama-lily added a commit that referenced this issue Jun 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working confirmed Confirmed by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants