koishi在运行指令时有概率报错

这里节选了三个错误日志

2024-12-08 09:57:02 [W] command 早安 Error: Forbidden at [cordis.invoke] (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:340:23) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Proxy.<anonymous> (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:178:26) at async _Command.eval (eval at <anonymous> (/koishi/node_modules/koishi-plugin-blockly-null/lib/index.js:197:32), <anonymous>:6:13) at async Array.<anonymous> (/koishi/node_modules/@koishijs/core/lib/index.cjs:1083:14) at async _Command.execute (/koishi/node_modules/@koishijs/core/lib/index.cjs:1097:22) at async /koishi/node_modules/@koishijs/core/lib/index.cjs:2064:22 at async Proxy.withScope (/koishi/node_modules/@koishijs/core/lib/index.cjs:1973:22) at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:829:16) at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:829:16)

2024-12-08 09:57:10 [W] command 早安 Error: Forbidden at [cordis.invoke] (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:340:23) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Proxy.<anonymous> (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:178:26) at async _Command.eval (eval at <anonymous> (/koishi/node_modules/koishi-plugin-blockly-null/lib/index.js:197:32), <anonymous>:6:13) at async Array.<anonymous> (/koishi/node_modules/@koishijs/core/lib/index.cjs:1083:14) at async _Command.execute (/koishi/node_modules/@koishijs/core/lib/index.cjs:1097:22) at async /koishi/node_modules/@koishijs/core/lib/index.cjs:2064:22 at async Proxy.withScope (/koishi/node_modules/@koishijs/core/lib/index.cjs:1973:22) at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:829:16) at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:829:16)

2024-12-08 09:57:15 [W] command 晚安 Error: Forbidden at [cordis.invoke] (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:340:23) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Proxy.<anonymous> (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:178:26) at async _Command.eval (eval at <anonymous> (/koishi/node_modules/koishi-plugin-blockly-null/lib/index.js:197:32), <anonymous>:11:13) at async Array.<anonymous> (/koishi/node_modules/@koishijs/core/lib/index.cjs:1083:14) at async _Command.execute (/koishi/node_modules/@koishijs/core/lib/index.cjs:1097:22) at async /koishi/node_modules/@koishijs/core/lib/index.cjs:2064:22 at async Proxy.withScope (/koishi/node_modules/@koishijs/core/lib/index.cjs:1973:22) at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:829:16) at async next (/koishi/node_modules/@koishijs/core/lib/index.cjs:829:16)

而且这种报错是偶发错误,过一会又好了

系统环境:
系统:CentOS 7
运行在docker上
System:

OS: Linux 3.10 Alpine Linux

CPU: (4) x64 Intel(R) Xeon(R) Gold 6133 CPU @ 2.50GHz

Binaries:

Node: 20.16.0

Yarn: 4.1.1

Koishi:

Core: 4.18.3

Console: 5.29.3

2 个赞

这个报错是什么插件导致的

是你写的吗?

如果是,那看一下你写的是什么代码

1 个赞