Skip to content

[BUG] 使用webQQ时报错: "NT API 调用失败" #786

Description

@Declarcall

系统版本

Ubuntu24.04

QQNT 版本

9.9.7

LLBot 版本

linyuchen/llbot:7.12.15

OneBot 客户端

No response

发生了什么?

NT API 调用失败: { TypeError [ERR_INVALID_ARG_TYPE]: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
at Buffer.byteLength (node:buffer:850:11)
at (/app/node_modules/@saltify/typeproto/dist/index.mjs:638:27)
at ProtoMessage.calculateSerializedSize (/app/node_modules/@saltify/typeproto/dist/index.mjs:892:54)
at (/app/node_modules/@saltify/typeproto/dist/index.mjs:852:56)
at ProtoMessage.calculateSerializedSize (/app/node_modules/@saltify/typeproto/dist/index.mjs:892:54)
at (/app/node_modules/@saltify/typeproto/dist/index.mjs:852:56)
at ProtoMessage.calculateSerializedSize (/app/node_modules/@saltify/typeproto/dist/index.mjs:892:54)
at ProtoMessage.encode (/app/node_modules/@saltify/typeproto/dist/index.mjs:922:39)
at Proxy.getGroupVideoUrl (/app/src/main/pmhq/mixins/media.ts:88:43)
at Object.apply (/app/node_modules/cordis/lib/index.js:139:40)
code: 'ERR_INVALID_ARG_TYPE' }

如何复现

我是用 curl -fsSL https://gh-proxy.com/https://raw.githubusercontent.com/LLOneBot/LuckyLilliaBot/refs/heads/main/script/install-llbot-docker.sh -o llbot-docker.sh && chmod u+x ./llbot-docker.sh && ./llbot-docker.sh 安装的。 装好后进 http://localhost:8000/#webqq ,找个群,然后在群里找个视频点开(最好是别人发的视频,而不是文件),就会报这个错误

期望的结果?

点开后正常播放视频

LLBot 运行日志

NT API 调用失败: { TypeError [ERR_INVALID_ARG_TYPE]: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
    at Buffer.byteLength (node:buffer:850:11)
    at <anonymous> (/app/node_modules/@saltify/typeproto/dist/index.mjs:638:27)
    at ProtoMessage.calculateSerializedSize (/app/node_modules/@saltify/typeproto/dist/index.mjs:892:54)
    at <anonymous> (/app/node_modules/@saltify/typeproto/dist/index.mjs:852:56)
    at ProtoMessage.calculateSerializedSize (/app/node_modules/@saltify/typeproto/dist/index.mjs:892:54)
    at <anonymous> (/app/node_modules/@saltify/typeproto/dist/index.mjs:852:56)
    at ProtoMessage.calculateSerializedSize (/app/node_modules/@saltify/typeproto/dist/index.mjs:892:54)
    at ProtoMessage.encode (/app/node_modules/@saltify/typeproto/dist/index.mjs:922:39)
    at Proxy.getGroupVideoUrl (/app/src/main/pmhq/mixins/media.ts:88:43)
    at Object.apply (/app/node_modules/cordis/lib/index.js:139:40)
  code: 'ERR_INVALID_ARG_TYPE' }

OneBot 客户端运行日志

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions