claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] API Error: request ended without sending any chunks

Open Mike00000001 opened this issue 1 year ago • 19 comments

Environment

  • Platform:
  • Anthropic API
  • Claude CLI version: 0.2.42 (Claude Code)
  • Operating System: WSL Ubuntu

Bug Description

Claude Code has been working perfectly for days now, and I just started receiving this error from any prompt. Exiting and restarting does not fix. I can not currently use at all.

Error: API Error: request ended without sending any chunks

Steps to Reproduce

Enter any prompt into claude code

Expected Behavior

A response and action

Actual Behavior

API Error

Additional Context

Image

Mike00000001 avatar Mar 14 '25 22:03 Mike00000001

Same thing.. not sure why.

stevenlafl avatar Mar 14 '25 22:03 stevenlafl

have the same

meligo avatar Mar 14 '25 22:03 meligo

Nice to know I am in good company. 😁

Mike00000001 avatar Mar 14 '25 22:03 Mike00000001

same happened to me after the update, time to open up Cline i guess lol

BaseInfinity avatar Mar 14 '25 22:03 BaseInfinity

Having the same issue. Tried:

  1. Logging out, then logging in again.
  2. Uninstalling and reinstalling.
  3. Running in iterm instead of in vscode

None of these fixes worked approach worked.

│ - Environment info: macos, vscode, v0.2.42 │

waleedkadous avatar Mar 14 '25 22:03 waleedkadous

me too https://github.com/anthropics/claude-code/issues/494

timeless-residents avatar Mar 14 '25 22:03 timeless-residents

I forgot how to do work without Claude Code.... guess I take rest of day off?

daniyal0951 avatar Mar 14 '25 22:03 daniyal0951

Having the same issue. Tried:

  1. Logging out, then logging in again.
  2. Uninstalling and reinstalling.

Same here. From the responses I assume Anthropics API is down.

Mike00000001 avatar Mar 14 '25 22:03 Mike00000001

Last version that works is:

npm install -g @anthropic-ai/[email protected]

I get:

╭──────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview!       │
│                                                  │
│   /help for help                                 │
│                                                  │
│   cwd: /home/stevenlafl/Projects/project│
╰──────────────────────────────────────────────────╯

> hello

● Hello! How can I help you with the project today?

stevenlafl avatar Mar 14 '25 22:03 stevenlafl

Last version that works is:

npm install -g @anthropic-ai/[email protected]

I get:

╭──────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview!       │
│                                                  │
│   /help for help                                 │
│                                                  │
│   cwd: /home/stevenlafl/Projects/project│
╰──────────────────────────────────────────────────╯

> hello

● Hello! How can I help you with the project today?

Thanks! I reverted

BaseInfinity avatar Mar 14 '25 22:03 BaseInfinity

Last version that works is:

npm install -g @anthropic-ai/[email protected]

I get:

╭──────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview!       │
│                                                  │
│   /help for help                                 │
│                                                  │
│   cwd: /home/stevenlafl/Projects/project│
╰──────────────────────────────────────────────────╯

> hello

● Hello! How can I help you with the project today?

Nice I was just making my way down the versions (was at 0.2.40) lol

daniyal0951 avatar Mar 14 '25 22:03 daniyal0951

Last version that works is:

npm install -g @anthropic-ai/[email protected]

I get:

╭──────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview!       │
│                                                  │
│   /help for help                                 │
│                                                  │
│   cwd: /home/stevenlafl/Projects/project│
╰──────────────────────────────────────────────────╯

> hello

● Hello! How can I help you with the project today?

Wow, that totally works for me!

timeless-residents avatar Mar 14 '25 22:03 timeless-residents

Last version that works is:

npm install -g @anthropic-ai/[email protected]

I get:

╭──────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview!       │
│                                                  │
│   /help for help                                 │
│                                                  │
│   cwd: /home/stevenlafl/Projects/project│
╰──────────────────────────────────────────────────╯

> hello

● Hello! How can I help you with the project today?

Thank you very much!

Mike00000001 avatar Mar 14 '25 22:03 Mike00000001

I cannot even send a message now, hitting the enter after typing in a message does nothing

vinay9986 avatar Mar 14 '25 22:03 vinay9986

I cannot even send a message now, hitting the enter after typing in a message does nothing

Downgrading got it working for me thanks to this tip: npm install -g @anthropic-ai/[email protected]

https://github.com/anthropics/claude-code/issues/502#issuecomment-2725885156

Mike00000001 avatar Mar 14 '25 22:03 Mike00000001

Fixed! Sorry about that

bcherny avatar Mar 14 '25 22:03 bcherny

@bcherny, there is regression in version 1.0.8.

martin-rounds-ai avatar Jun 02 '25 18:06 martin-rounds-ai

Im getting this is 1.0.9

jpwallace22 avatar Jun 03 '25 16:06 jpwallace22

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 13 '25 14:08 github-actions[bot]