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

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

Open backspacevenkat opened this issue 1 year ago • 12 comments

-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.

Image

backspacevenkat avatar Mar 14 '25 22:03 backspacevenkat

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

Image

MustaphaSteph avatar Mar 14 '25 22:03 MustaphaSteph

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!

vinay9986 avatar Mar 14 '25 22:03 vinay9986

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/[email protected]

gasscoelho avatar Mar 14 '25 23:03 gasscoelho

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

  1. Rollback to [email protected] 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.

rstocker99 avatar Mar 15 '25 00:03 rstocker99

Fix incoming

bcherny avatar Mar 15 '25 00:03 bcherny

I am getting API error 400. I ran npm uninstall -g @anthropic-ai/claude-code npm install -g @anthropic-ai/[email protected] And it's working fine for me

basher83 avatar Mar 15 '25 01:03 basher83

This is fixed in 0.2.44. Thanks for the report!

bcherny avatar Mar 15 '25 03:03 bcherny

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)

Image

MashoodAli-Official avatar Mar 19 '25 06:03 MashoodAli-Official

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 avatar Mar 29 '25 05:03 basher83

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

basher83 avatar Mar 29 '25 18:03 basher83

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.

msp avatar Apr 03 '25 10:04 msp

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 11 '25 14:08 github-actions[bot]