openclaw - 💡(How to fix) Fix fix(bonjour): CIAO PROBING CANCELLED unhandled promise rejection crashes gateway on Windows (4.24) [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

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…
GitHub stats
openclaw/openclaw#71972Fetched 2026-04-27 05:36:44
View on GitHub
Comments
2
Participants
3
Timeline
4
Reactions
0
Author
Timeline (top)
commented ×2closed ×1cross-referenced ×1

On Windows, upgrading to 4.24 (and 4.23) causes the gateway to crash shortly after startup with an unhandled promise rejection from the Bonjour/mDNS advertiser.

Error Message

\
[openclaw] Unhandled promise rejection: CIAO PROBING CANCELLED [openclaw] wrote stability bundle: openclaw-stability-2026-04-26T04-44-31-582Z-9640-unhandled_rejection.json \\

Root Cause

On Windows, upgrading to 4.24 (and 4.23) causes the gateway to crash shortly after startup with an unhandled promise rejection from the Bonjour/mDNS advertiser.

Fix Action

Workaround

Downgrade to 4.22. The same Bonjour probing/re-advertise sequence happens on 4.22 but the promise rejection is handled gracefully (no crash).

RAW_BUFFERClick to expand / collapse

Summary

On Windows, upgrading to 4.24 (and 4.23) causes the gateway to crash shortly after startup with an unhandled promise rejection from the Bonjour/mDNS advertiser.

Error

\
[openclaw] Unhandled promise rejection: CIAO PROBING CANCELLED [openclaw] wrote stability bundle: openclaw-stability-2026-04-26T04-44-31-582Z-9640-unhandled_rejection.json \\

Sequence of events

  1. Gateway starts, Bonjour advertiser begins probing
  2. After ~60s, watchdog detects service stuck in probing state: \
    bonjour: watchdog detected non-announced service; attempting re-advertise (state=probing) \\
  3. Advertiser restarts, throws \CIAO PROBING CANCELLED\ as unhandled promise rejection
  4. Gateway process exits

Environment

  • OS: Windows 10.0.26200 (x64)
  • Node: 24.14.0
  • OpenClaw: 2026.4.24 (also reproduced on 4.23)
  • Works fine on 4.22

Impact

Gateway crashes ~90s after startup on affected Windows machines. Watchdog restarts it, but it crashes again in a loop.

Workaround

Downgrade to 4.22. The same Bonjour probing/re-advertise sequence happens on 4.22 but the promise rejection is handled gracefully (no crash).

Log context

\
bonjour: watchdog detected non-announced service; attempting re-advertise (state=probing) bonjour: restarting advertiser (service stuck in probing for 60740ms) [openclaw] Unhandled promise rejection: CIAO PROBING CANCELLED [openclaw] wrote stability bundle: ...-unhandled_rejection.json \\

The fix is likely adding a try/catch or .catch()\ handler around the Bonjour advertiser restart in the mDNS probing watchdog path.

extent analysis

TL;DR

Adding a try/catch block or a .catch() handler around the Bonjour advertiser restart in the mDNS probing watchdog path is likely to fix the unhandled promise rejection issue.

Guidance

  • Review the code responsible for the Bonjour advertiser restart in the mDNS probing watchdog path to identify where the promise rejection is occurring.
  • Add a try/catch block or a .catch() handler to handle the promise rejection and prevent the gateway from crashing.
  • Verify that the workaround of downgrading to version 4.22 is effective in handling the promise rejection gracefully.
  • Investigate the changes made between versions 4.22 and 4.23/4.24 to understand the root cause of the issue.

Example

// Pseudo-code example of adding a try/catch block
try {
  // Code responsible for Bonjour advertiser restart
} catch (error) {
  // Handle the error and prevent the gateway from crashing
  console.error('Error restarting Bonjour advertiser:', error);
}

// Alternatively, using a .catch() handler
restartBonjourAdvertiser()
  .catch((error) => {
    // Handle the error and prevent the gateway from crashing
    console.error('Error restarting Bonjour advertiser:', error);
  });

Notes

The exact implementation of the try/catch block or .catch() handler will depend on the specific code responsible for the Bonjour advertiser restart.

Recommendation

Apply the workaround of adding a try/catch block or a .catch() handler to handle the promise rejection, as this is likely to fix the issue without requiring a version upgrade.

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 fix(bonjour): CIAO PROBING CANCELLED unhandled promise rejection crashes gateway on Windows (4.24) [2 comments, 3 participants]