openclaw - 💡(How to fix) Fix [QQBot] Message processing crash: Cannot read properties of undefined (reading 'run')

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

All three QQ Bot accounts (main/finance/architect) receive messages from QQ successfully, and the QQ API calls return 200, but internal message processing always crashes with:

Message processing failed: Cannot read properties of undefined (reading 'run')

This is a regression in v2026.5.28. The QQ Bot worked fine before the upgrade.

Error Message

2026-06-01T09:12:52.022+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [finance] Processing message from 694520CB69AA9EA6E22902AACCB48F6C: 哈哈 {"accountId":"finance","messageId":"ROBOT1.0_0LpYgpi62YWILB2FGFOWfpN5-JRApg7eE8s0tvRYdxs7-0bQlv2xIWt1KoxGpIOvFA7v-XxOEv-AZmvqqDUxuA.Nu2ZHtBwpRjRcxe5DnDY!","senderId":"694520CB69AA9EA6E22902AACCB48F6C","type":"c2c"}
2026-06-01T09:12:52.257+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [finance] [qqbot:api] <<< Status: 200 OK | TraceId: 7e85de90523f4f259fcd32af5d0c8637
2026-06-01T09:12:52.274+08:00 error channels/qqbot {"subsystem":"channels/qqbot"} [finance] Message processing failed: Cannot read properties of undefined (reading 'run')
2026-06-01T09:12:55.590+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [main] Processing message from CB2EC410CE3E526CB02544D5942AC781: 哈哈 {"accountId":"main","messageId":"ROBOT1.0_T8kGr1GIWyx.yagVG4eB2.UmFPEVN1ucCEhCbrIyLJ6KOP5B0gvHWcawOc1i5TMvtix4ARtOrDXN2MJLWC5fUw.Nu2ZHtBwpRjRcxe5DnDY!","senderId":"CB2EC410CE3E526CB02544D5942AC781","type":"c2c"}
2026-06-01T09:12:55.716+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [main] [qqbot:api] <<< Status: 200 OK | TraceId: 1ec7da4188dbc5ba145540161c1a7f90
2026-06-01T09:12:55.722+08:00 error channels/qqbot {"subsystem":"channels/qqbot"} [main] Message processing failed: Cannot read properties of undefined (reading 'run')
2026-06-01T09:13:01.166+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [architect] Processing message from 5F8E27E439886CBCC7D96F3BAC87E04C: 哈哈 {"accountId":"architect","messageId":"ROBOT1.0_KaVoBewWGLTOzM6OqZSUsG6oISKYuFzZMX0e4YQQ5xZc8OdHACJe15q4R1djuIKO4QuU2TZpqkCFSQXwzKsusA.Nu2ZHtBwpRjRcxe5DnDY!","senderId":"5F8E27E439886CBCC7D96F3BAC87E04C","type":"c2c"}
2026-06-01T09:13:01.402+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [architect] [qqbot:api] <<< Status: 200 OK | TraceId: 44e7798b69852760efc1569305c264e1
2026-06-01T09:13:01.406+08:00 error channels/qqbot {"subsystem":"channels/qqbot"} [architect] Message processing failed: Cannot read properties of undefined (reading 'run')

Root Cause

All three QQ Bot accounts (main/finance/architect) receive messages from QQ successfully, and the QQ API calls return 200, but internal message processing always crashes with:

Message processing failed: Cannot read properties of undefined (reading 'run')

This is a regression in v2026.5.28. The QQ Bot worked fine before the upgrade.

Code Example

Message processing failed: Cannot read properties of undefined (reading 'run')

---

Processing message from <senderId>: <messageText>
   [qqbot:api] <<< Status: 200 OK
   Message processing failed: Cannot read properties of undefined (reading 'run')

---

2026-06-01T09:12:52.022+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [finance] Processing message from 694520CB69AA9EA6E22902AACCB48F6C: 哈哈 {"accountId":"finance","messageId":"ROBOT1.0_0LpYgpi62YWILB2FGFOWfpN5-JRApg7eE8s0tvRYdxs7-0bQlv2xIWt1KoxGpIOvFA7v-XxOEv-AZmvqqDUxuA.Nu2ZHtBwpRjRcxe5DnDY!","senderId":"694520CB69AA9EA6E22902AACCB48F6C","type":"c2c"}
2026-06-01T09:12:52.257+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [finance] [qqbot:api] <<< Status: 200 OK | TraceId: 7e85de90523f4f259fcd32af5d0c8637
2026-06-01T09:12:52.274+08:00 error channels/qqbot {"subsystem":"channels/qqbot"} [finance] Message processing failed: Cannot read properties of undefined (reading 'run')
2026-06-01T09:12:55.590+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [main] Processing message from CB2EC410CE3E526CB02544D5942AC781: 哈哈 {"accountId":"main","messageId":"ROBOT1.0_T8kGr1GIWyx.yagVG4eB2.UmFPEVN1ucCEhCbrIyLJ6KOP5B0gvHWcawOc1i5TMvtix4ARtOrDXN2MJLWC5fUw.Nu2ZHtBwpRjRcxe5DnDY!","senderId":"CB2EC410CE3E526CB02544D5942AC781","type":"c2c"}
2026-06-01T09:12:55.716+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [main] [qqbot:api] <<< Status: 200 OK | TraceId: 1ec7da4188dbc5ba145540161c1a7f90
2026-06-01T09:12:55.722+08:00 error channels/qqbot {"subsystem":"channels/qqbot"} [main] Message processing failed: Cannot read properties of undefined (reading 'run')
2026-06-01T09:13:01.166+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [architect] Processing message from 5F8E27E439886CBCC7D96F3BAC87E04C: 哈哈 {"accountId":"architect","messageId":"ROBOT1.0_KaVoBewWGLTOzM6OqZSUsG6oISKYuFzZMX0e4YQQ5xZc8OdHACJe15q4R1djuIKO4QuU2TZpqkCFSQXwzKsusA.Nu2ZHtBwpRjRcxe5DnDY!","senderId":"5F8E27E439886CBCC7D96F3BAC87E04C","type":"c2c"}
2026-06-01T09:13:01.402+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [architect] [qqbot:api] <<< Status: 200 OK | TraceId: 44e7798b69852760efc1569305c264e1
2026-06-01T09:13:01.406+08:00 error channels/qqbot {"subsystem":"channels/qqbot"} [architect] Message processing failed: Cannot read properties of undefined (reading 'run')
RAW_BUFFERClick to expand / collapse

Description

All three QQ Bot accounts (main/finance/architect) receive messages from QQ successfully, and the QQ API calls return 200, but internal message processing always crashes with:

Message processing failed: Cannot read properties of undefined (reading 'run')

This is a regression in v2026.5.28. The QQ Bot worked fine before the upgrade.

Reproduction

  1. OpenClaw v2026.5.28 with QQ Bot channel enabled (3 accounts: main/finance/architect)
  2. Send any direct message to any QQ Bot account
  3. Message is received and API call succeeds (200 OK), but agent session processing crashes

Environment

  • OpenClaw version: 2026.5.28 (e932160)
  • OS: macOS 15.7.7 (x64)
  • Node.js: v25.8.1
  • QQ Bot plugin: bundled
  • Accounts: 3 (main appid=1903168740, finance appid=1903460090, architect appid=1903606475)

Steps to Reproduce

  1. openclaw status — all QQ Bot accounts show enabled and connected
  2. Access token obtained successfully for all 3 accounts
  3. WebSocket connected to wss://api.sgroup.qq.com/websocket
  4. Gateway ready for all 3 accounts
  5. Send any message from QQ to any bot
  6. Log shows:
    Processing message from <senderId>: <messageText>
    [qqbot:api] <<< Status: 200 OK
    Message processing failed: Cannot read properties of undefined (reading 'run')

Logs

2026-06-01T09:12:52.022+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [finance] Processing message from 694520CB69AA9EA6E22902AACCB48F6C: 哈哈 {"accountId":"finance","messageId":"ROBOT1.0_0LpYgpi62YWILB2FGFOWfpN5-JRApg7eE8s0tvRYdxs7-0bQlv2xIWt1KoxGpIOvFA7v-XxOEv-AZmvqqDUxuA.Nu2ZHtBwpRjRcxe5DnDY!","senderId":"694520CB69AA9EA6E22902AACCB48F6C","type":"c2c"}
2026-06-01T09:12:52.257+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [finance] [qqbot:api] <<< Status: 200 OK | TraceId: 7e85de90523f4f259fcd32af5d0c8637
2026-06-01T09:12:52.274+08:00 error channels/qqbot {"subsystem":"channels/qqbot"} [finance] Message processing failed: Cannot read properties of undefined (reading 'run')
2026-06-01T09:12:55.590+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [main] Processing message from CB2EC410CE3E526CB02544D5942AC781: 哈哈 {"accountId":"main","messageId":"ROBOT1.0_T8kGr1GIWyx.yagVG4eB2.UmFPEVN1ucCEhCbrIyLJ6KOP5B0gvHWcawOc1i5TMvtix4ARtOrDXN2MJLWC5fUw.Nu2ZHtBwpRjRcxe5DnDY!","senderId":"CB2EC410CE3E526CB02544D5942AC781","type":"c2c"}
2026-06-01T09:12:55.716+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [main] [qqbot:api] <<< Status: 200 OK | TraceId: 1ec7da4188dbc5ba145540161c1a7f90
2026-06-01T09:12:55.722+08:00 error channels/qqbot {"subsystem":"channels/qqbot"} [main] Message processing failed: Cannot read properties of undefined (reading 'run')
2026-06-01T09:13:01.166+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [architect] Processing message from 5F8E27E439886CBCC7D96F3BAC87E04C: 哈哈 {"accountId":"architect","messageId":"ROBOT1.0_KaVoBewWGLTOzM6OqZSUsG6oISKYuFzZMX0e4YQQ5xZc8OdHACJe15q4R1djuIKO4QuU2TZpqkCFSQXwzKsusA.Nu2ZHtBwpRjRcxe5DnDY!","senderId":"5F8E27E439886CBCC7D96F3BAC87E04C","type":"c2c"}
2026-06-01T09:13:01.402+08:00 info channels/qqbot {"subsystem":"channels/qqbot"} [architect] [qqbot:api] <<< Status: 200 OK | TraceId: 44e7798b69852760efc1569305c264e1
2026-06-01T09:13:01.406+08:00 error channels/qqbot {"subsystem":"channels/qqbot"} [architect] Message processing failed: Cannot read properties of undefined (reading 'run')

Additional Notes

  • All 3 accounts affected identically — same error, same timing pattern
  • The error occurs during internal message processing, not during QQ API communication (which succeeds)
  • There is also an unhandled rejection in stability logs: Response timeout at line 5951 of gateway-Cs3-_on9.js
  • The error Cannot read properties of undefined (reading 'run') suggests an uninitialized session/router object is being called
  • Feishu channel works perfectly fine on the same instance

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [QQBot] Message processing crash: Cannot read properties of undefined (reading 'run')