adapter-kook在使用webhook连接时无法正常处理challenge

rt


这是adapter-kook的配置,其中的token和verifytoken均填写正常
koishi已部署到公网并且有SSL证书
在重试challenge时终端出现以下报错

  SyntaxError: invalid JSON, only supports object and array
      at parse (/server/koishi-app/node_modules/co-body/lib/json.js:55:13)
      at module.exports [as json] (/server/koishi-app/node_modules/co-body/lib/json.js:41:20)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at <anonymous> (/server/koishi-app/node_modules/koa-body/src/index.ts:48:28)

以下为系统和环境信息
System:

OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)

CPU: (2) x64 Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz

Binaries:

Node: 20.13.1

Yarn: 4.1.1

Koishi:

Core: 4.17.7

Console: 5.28.4

1 个赞