Skip to content

[Bug]: Unhandled promise rejection #2034

@Alohacop

Description

@Alohacop

Summary

What went wrong?
Clawdbot is being booted offline. I think the bot is attempting to connect to the Claude API. When the network fails, the fetch command throws a TypeError. Because the code doesn't have a try/catch block or a .catch() handler around that specific request, Node.js doesn't know how to recover and simply shuts down.

Steps to reproduce

  1. Via Telegram I asked ClawdBot if I could use a different AI model from anthropic/claude-haiku-4-5

Expected behavior

I was hoping that ClawdBot would give me the opportunity to switch to a different AI model within Anthropic.

Actual behavior

ClawdBot shutdown.

Environment

  • Clawdbot version: 2026.1.24-3 (885167d)
  • OS: Windows 11
  • Install method (pnpm/npx/docker/etc): ?

02:00:31 [clawdbot] Unhandled promise rejection: TypeError: fetch failed

at node:internal/deps/undici/undici:14902:13
at processTicksAndRejections (node:internal/process/task_queues:105:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions