openclaw报错: channels.feishu.accounts.main: invalid config: must NOT have additio

3 阅读1分钟

openclaw更新了版本,然后启动就报错了。以下是解决过程

需要修改 openclaw.json 配置文件,调整飞书渠道的配置结构。

  1. 找到配置文件:通常位于 ~/.openclaw/openclaw.json
  2. 修改 channels.feishu 部分:请参照下面的正确格式进行调整。

❌ 错误的配置示例

这是导致你报错的配置结构:

{
  "channels": {
    "feishu": {
      "enabled": true,
      "accounts": {
        "main": {
          "appId": "cli_xxx",
          "appSecret": "xxx",
          "botName": "主助手"
        }
      }
    }
  }
}

✅ 正确的配置示例

你需要将账户名改为 default,并确保配置项位于正确的位置:

{
  "channels": {
    "feishu": {
      "enabled": true,
      "accounts": {
        "default": {
          "appId": "cli_xxx",
          "appSecret": "xxx",
        }
      }
    }
  }
}

🚀 修复后操作

修改并保存配置文件后,请重启 OpenClaw 网关以使新配置生效:

openclaw gateway restart

其他注意事项

feishu-accounts-default下边只保留appId和appSecret两个属性,其他都不要,不然还是会报错:channels.feishu.accounts.default: invalid config: must NOT have additional properties