[BUG] Not able to enter any command, Enter is not working after the update

Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
Activity 12 comments · opened Mar 14, 2025 · closed Mar 15, 2025
💡 Likely answer: A maintainer (bcherny, collaborator) responded on this thread — see the highlighted reply below.

-Anthropic API
-Claude code V18.17.0

I have updated Claude code as i was getting other errors, after the update I am not able to even enter any command and press enter / return.

<img width="1176" alt="Image" src="https://github.com/user-attachments/assets/3bfbb101-ec82-4867-87e5-e4aed3996834" />

View original on GitHub ↗

12 Comments

MustaphaSteph · 1 year ago

I have same Issue.
before this i were getting : API Error: request ended without sending any chunks.
Then i logout and tried to login but not working anymore .. we click enter but nothing happening
no commands is working .. i tried troubleshouting everything

<img width="564" alt="Image" src="https://github.com/user-attachments/assets/30789c80-34e8-43dc-b8f3-9a5af6c5fddd" />

vinay9986 · 1 year ago

same here, can someone help me with the reinstall?

I tried npm uninstall -g anthropic-ai/claude-code -s and npm prune. Looks like this does nothing, I can still do claude and it runs, with the same problem, hitting enter does nothing.

I want to try with a fresh install and see if that helps. Thank you!

gasscoelho · 1 year ago

I also got this issue after the upgrade

claude --version
0.2.43 (Claude Code)

Going back few versions it seems it started at 0.2.33... I rolled back to 0.2.32 and It worked for me.

npm uninstall -g @anthropic-ai/claude-code  
npm install -g @anthropic-ai/claude-code@0.2.32
rstocker99 · 1 year ago

@gasscoelho thanks for the tip. For others here's what worked for me:

  1. Rollback to claude-code@0.2.32 per @gasscoelho tip above
  2. Relaunch claude. Now I can hit enter but, Claude complains I'm not logged in (or have an invalid api key - cleared screen before grabbing the error message :()
  3. /logout
  4. Reopen claude and go through login process to create a new api key
  5. Works! Can hit enter and claude makes api calls
  6. Exit claude
  7. Run claude update to get back on version 0.2.43
  8. Relaunch claude
  9. Enter key works again on latest version.

I tried logging out and logging back in during the API outage. I could see that claude was creating new api keys. I wonder if maybe the api key got created but not saved locally. I deleted some of the newly created api keys during the outage as well. Maybe that caused some bad state client side.

I also tried rolling back to 0.2.41, 0.2.40 and 0.2.39. None of those worked.

bcherny collaborator · 1 year ago

Fix incoming

basher83 · 1 year ago

I am getting API error 400. I ran
npm uninstall -g @anthropic-ai/claude-code
npm install -g @anthropic-ai/claude-code@0.2.43

And it's working fine for me

bcherny collaborator · 1 year ago

This is fixed in 0.2.44. Thanks for the report!

MashoodAli-Official · 1 year ago

Hi there I have been facing the same error "API Error: 400" for the last three days.
⎿ API Error: 400
I have taken every single step to solve this issue, but nothing has worked. My Anthropic billing account is totally active and I have credits in my account to use it. The current Claude version is 0.2.49 (Claude Code)

<img width="616" alt="Image" src="https://github.com/user-attachments/assets/152b3876-3f98-45cd-ac1f-bbaa7b16d554" />

basher83 · 1 year ago

It's come back to haunt me again too. I can access a bunch of the other commands I just can't use the prompt or interactive chat. version 0.2.56 on MacOS

!Image

basher83 · 1 year ago

To circle back for anyone having issues later I had to:
npm uninstall -g @anthropic-ai/claude-code
rm -rf ~/.claude*
npm install -g @anthropic-ai/claude-code
All good again

msp · 1 year ago
To circle back for anyone having issues later I had to: npm uninstall -g @anthropic-ai/claude-code rm -rf ~/.claude* npm install -g @anthropic-ai/claude-code All good again

This worked for me after the terminal became unresponsive to carriage returns.

github-actions[bot] · 1 year ago

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.