[BUG] This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().

Resolved 💬 6 comments Opened Jan 8, 2026 by BrightMoon-000 Closed Feb 28, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

It seems like output interrupted when tool calling.
And i've tried change version of node.js or claude code ,but it still error.

What Should Happen?

Claude code should output successfully and calling right tool successfully

Error Messages/Logs

> hello

● Hello! I'm Claude, an AI assistant created by Anthropic. How can I help you today? If you have any questions or need assistance with something, just let me know!

· Churning… (esc to interrupt)

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> 
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ? for shortcuts                                 Failed to install Anthropic marketplace · Will retry on next startup
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Cannot read properties of null (reading 'startsWith')
    at BZ7 (file:///C:/Users/win10/AppData/Local/nvm/v20.19.6/node_modules/@anthropic-ai/claude-code/cli.js:3437:20968)
    at yF1 (file:///C:/Users/win10/AppData/Local/nvm/v20.19.6/node_modules/@anthropic-ai/claude-code/cli.js:3437:21224)
    at yF1.next (<anonymous>)
    at AZ7 (file:///C:/Users/win10/AppData/Local/nvm/v20.19.6/node_modules/@anthropic-ai/claude-code/cli.js:3437:20429)

Steps to Reproduce

newlly installed Windows 10 Professional
with Git-2.52.0-64-bit
nvm use 20.19.6 /nvm use 22.21.1 /nvm use 24.12.0
npm install -g @anthropic-ai/claude-code (2.1.1) / npm install -g @anthropic-ai/claude-code@2.0.76

{
"env": {
"ANTHROPIC_BASE_URL": "http://10.101.24.110:30003",
"ANTHROPIC_AUTH_TOKEN": "xxx",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "Qwen3-Coder-30B-A3B-Instruct-FP8",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "Qwen3-Coder-30B-A3B-Instruct-FP8",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "Qwen3-Coder-30B-A3B-Instruct-FP8"
},
"permissions": {
"defaultMode": "default"
},
"alwaysThinkingEnabled": false
}

Claude Model

Other

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.1

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗