背景:腾讯开发平台的QQ机器人需要白名单IP才能使用提交审核,但家庭宽带是动态IP,于是部署于公网服务器上使用固定IP,但公网服务器配置不足以处理大量消息。所以想在公网部署完整koishi但不处理消息,仅作为登录器连接QQ机器人,而消息通过satori插件连接交于家庭服务器处理。
操作:
步骤1:公网服务器开启adapter-qq与server-satori插件并配置。
步骤2:家庭服务器开启adapter-satori插件并配置,且成功连接公网服务器。
步骤3:向QQ机器人发送消息,家庭服务器出现报错,如下:
2024-10-09 16:03:09 [I] adapter connect to server: ws://***.ysmj.xyz/***/v1/events
2024-10-09 16:03:20 [W] session Error: Internal Server Error
at [cordis.invoke] (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:332:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Proxy.<anonymous> (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:184:26)
at async SatoriBot.<computed> (/koishi/node_modules/@satorijs/adapter-satori/lib/index.cjs:98:20)
at async Proxy.sendMessage (/koishi/node_modules/@satorijs/core/lib/index.cjs:355:22)
at async sendReplies (/koishi/node_modules/koishi-plugin-dialogue-fork/lib/index.js:683:9)
at async checkAndSendRandomReply (/koishi/node_modules/koishi-plugin-dialogue-fork/lib/index.js:718:13)
at async middlewareFunction (/koishi/node_modules/koishi-plugin-dialogue-fork/lib/index.js:726:9)
at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:824:16)
at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:824:16)
求解决办法!