乐于分享
好东西不私藏

openclaw错误坑|gateway connect failed: GatewayClientRequestError: pairing required

openclaw错误坑|gateway connect failed: GatewayClientRequestError: pairing required

错误原因分析

错误信息gateway connect failed: GatewayClientRequestError: pairing required表明您的设备首次连接OpenClaw网关,需要管理员手动批准配对。这是OpenClaw的安全机制,防止未授权访问。

解决方案

请按以下步骤解决配对问题:

  1. 1. 查看待批准设备列表

    openclaw devices list

    这会显示所有待处理的设备,状态为PENDING

  2. 2. 批准您的设备

    openclaw devices approve <device_id>

    或者批量批准所有设备:

    openclaw devices approve --all
  3. 3. 重启网关服务(可选但推荐)

    openclaw gateway restart
  4. 4. 重新执行命令配对批准后,重新运行:

    openclaw cron list

关于openclaw cron list命令

一旦配对问题解决,openclaw cron list命令将正常显示所有定时任务,包括:

  • • 任务ID和名称
  • • 计划表达式(cron格式)
  • • 下次运行时间
  • • 启用状态

该命令会以表格形式输出所有配置的定时任务,让您一目了然地查看自动化任务的运行状态和计划。

请先完成设备配对,然后再尝试使用cron list命令查看定时任务列表。