Skip to content

[Bug] openclaw-weixin: session expired (errcode -14) 死循环 + channelConfigs 元数据缺失警告 #227

@AmyXu2025

Description

@AmyXu2025

🐛 问题描述

openclaw-weixin 通道的登录态反复过期,导致 bot 暂停,形成死循环。

📋 错误日志

Config warnings: plugins.entries.openclaw-weixin: plugin openclaw-weixin: channel plugin manifest declares openclaw-weixin without channelConfigs metadata
21:28:05 [openclaw-weixin] weixin getUpdates: session expired (errcode -14), pausing bot for 60 min

🔁 重现步骤

  1. 运行 openclaw channels login --channel openclaw-weixin
  2. 扫码登录成功(Login confirmed!)
  3. gateway 异常关闭(1006 abnormal closure)
  4. 新登录的 auth 没被 gateway 加载,立刻又报 session expired
  5. 系统暂停 60 分钟后重试,还是过期 → 死循环

🕐 时间线

  • 4月26日晚 → 4月27日上午:每小时报一次错,连续 11 次
  • 4月27日下午:手动重新登录成功,但 gateway 同时异常关闭
  • 重启 gateway 后依然同样问题

🔍 根本原因

  1. 插件 manifest 缺少 channelConfigs 元数据
  2. 导致登录成功后 auth token 无法被 gateway 正确加载
  3. contextToken 本身 TTL 可能很短,但系统没有自动刷新机制

🖥️ 环境

  • OpenClaw 版本:[你当前的版本]
  • 操作系统:Windows
  • 安装方式:桌面应用

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions