-
Notifications
You must be signed in to change notification settings - Fork 17
Description
对接的框架是napcat,koishi这边使用的适配器版本为6.8.0版本
koishi这边的报错日志为:
2025-08-17 13:28:35 [W] session Error: Error with request send_private_msg, args: {"user_id":3,"message":[{"type":"text","data":{"text":"点赞失败惹,今天可能已经赞过了,美酒虽好,不可贪杯哦~"}}]}, retcode: 1200 at _Internal._get (/koishi/node_modules/koishi-plugin-adapter-onebot/lib/index.js:119:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async _Internal.<computed> [as sendPrivateMsg] (/koishi/node_modules/koishi-plugin-adapter-onebot/lib/index.js:162:20) at async OneBotMessageEncoder.flush (/koishi/node_modules/koishi-plugin-adapter-onebot/lib/index.js:771:235) at async OneBotMessageEncoder.send (/koishi/node_modules/@satorijs/core/lib/index.cjs:755:5) at async Proxy.sendMessage (/koishi/node_modules/@satorijs/core/lib/index.cjs:487:22) at async /koishi/node_modules/@koishijs/core/lib/index.cjs:2050:7 at async Proxy.withScope (/koishi/node_modules/@koishijs/core/lib/index.cjs:1957:22) at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:827:16) at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:827:16)
在napcat的报错内容为:
[ERROR] 发生错误 Error: 无法获取用户信息 at createContext (file:///app/napcat/napcat.mjs:60933:13) at async SendPrivateMsg.base_handle (file:///app/napcat/napcat.mjs:60996:18) at async SendPrivateMsg.websocketHandle (file:///app/napcat/napcat.mjs:51444:23) at async OB11WebSocketClientAdapter.handleMessage (file:///app/napcat/napcat.mjs:51593:21)
从koishi的日志中看到适配器给napcat传递了一个user_id为3,而这个user的id的值正常不应该是用户的QQID吗?