Skip to content

[Bug] Gateway process crashes on network disconnection (Unhandled Promise Rejection in Slack plugin) #23169

@hotejb

Description

@hotejb

Description

On macOS, when the network is disconnected (e.g., closing the laptop lid or switching to battery mode without stable Wi-Fi), the Gateway process frequently crashes. This is caused by an Unhandled promise rejection in the Slack plugin (and potentially others).

Impact

Rapid consecutive crashes trigger the macOS launchd throttling mechanism, leading to the service being marked as "Not Loaded" or "Throttled", requiring manual intervention to restore the service.

Logs

2026-02-22T10:17:21.624+08:00 [openclaw] Unhandled promise rejection: Error: A request error occurred: Client network socket disconnected before secure TLS connection was established
    at requestErrorWithOriginal (/opt/homebrew/lib/node_modules/openclaw/node_modules/@slack/web-api/src/errors.ts:82:5)
    at WebClient.<anonymous> (/opt/homebrew/lib/node_modules/openclaw/node_modules/@slack/web-api/src/WebClient.ts:767:43)
    at Generator.throw (<anonymous>)
    at rejected (/opt/homebrew/lib/node_modules/openclaw/node_modules/@slack/web-api/dist/WebClient.js:39:65)
    at processTicksAndRejections (node:internal/process/task_queues:104:5)

Expected Behavior

Plugins should catch network-related errors and implement a retry/backoff mechanism instead of allowing the entire process to exit.

Environment

  • OS: macOS 15.4 (Sequoia)
  • Node: v25.6.1
  • OpenClaw Version: 2026.2.20

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleMarked as stale due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions