-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed
Description
Description
The gateway crashes completely when an outbound HTTP request fails (e.g., to an external API like Brave Search, Anthropic, or Deepgram). Instead of gracefully handling the error and reporting it to the user, it throws an unhandled promise rejection and the process exits.
Steps to Reproduce
- Run the gateway normally
- Trigger an action that makes an outbound fetch (e.g., web_search, API call)
- Have the fetch fail (network timeout, rate limit, DNS failure)
- Gateway crashes
Actual Behavior
[clawdbot] Unhandled promise rejection: TypeError: fetch failed
at node:internal/deps/undici/undici:16416:13
at processTicksAndRejections (node:internal/process/task_queues:103:5)
Process exits. Requires manual restart.
Expected Behavior
The gateway should catch the failed fetch, log the error, and return a user-friendly message like: "The requested action failed due to a network error. Please try again."
The gateway should never crash on a failed HTTP request.
Environment
- Clawdbot version: 2026.1.24-3
- OS: Alpine Linux (x64)
- Node: v24.13.0
Metadata
Metadata
Assignees
Labels
No labels