openclaw browser --browser-profile openclaw start 报错
排查OpenClaw启动浏览器时的“Gateway Closed (1006)”错误
执行命令:openclaw browser --browser-profile openclaw start
???? OpenClaw 2026.3.23-2 (7ffe7e4) — The only open-source project where the mascot could eat the competition.
│
◇
Error: gateway closed (1006 abnormal closure (no close frame)): no close reason
Gateway target: ws://127.0.0.1:13562
Source: local loopback
Config: /home/admin/.openclaw/openclaw.json
Bind: loopback
这个“1006异常关闭”错误表明WebSocket在本地回环(127.0.0.1)建立连接后,因未能正常完成握手或交换关闭帧而意外中断。排查涉及验证端口13562的可用性、检查本地防火墙规则、以及确认配置文件(openclaw.json)中的网关设置。
解决方案是将OpenClaw核心升级至3.24版本。此次更新修复了底层网关通信协议与浏览器配置文件解析之间的一个关键兼容性问题,从而彻底解决了该WebSocket连接错误。对于自动化测试和爬虫工具而言,保持依赖库与核心工具链的版本同步是保障稳定性的首要步骤。