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

[BUG] API Error: 500

Open SwaynIO opened this issue 4 months ago • 10 comments

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?

⎿ API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":null}

What Should Happen?

Since this morning, whether I'm using IntelliJ IDEA or Visual Studio Code, Claude starts a task but never finishes it completely. Instead, it stops and shows this error message:

⎿ API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":null}

This means that there’s an internal server error on Claude’s side (a “500” error). It’s not an issue with IntelliJ IDEA or VS Code — it indicates that Claude’s API (the backend service it connects to) is having a problem processing the request.

In short: Claude is failing to complete the request due to a temporary server-side issue, not because of your local setup or editor configuration.

Error Messages/Logs


Steps to Reproduce

Write a prompt so that it can intervene, and the problem appears after some time

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.0.9 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

SwaynIO avatar Oct 07 '25 11:10 SwaynIO

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/9063

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 07 '25 11:10 github-actions[bot]

I just encountered the same error.

Image

edwrdcrpio avatar Oct 16 '25 01:10 edwrdcrpio

I have encountered it today as well, what is strange is that when I switch models it works:

Image

vim-zz avatar Nov 18 '25 09:11 vim-zz

I have encountered it today as well, what is strange is that when I switch models it works:

Image

Thank you for your response. Changing the model does indeed resolve this issue, which suggests the problem may be related to a specific model or its current state. If you have more information about this issue or further assistance to offer, please feel free to share. Meanwhile, we will continue to monitor this issue and provide updates if necessary. Thank you again for your feedback!

aixautox avatar Nov 18 '25 09:11 aixautox

solved now on my end using Sonnet

vim-zz avatar Nov 18 '25 10:11 vim-zz

The same issue. Image

glebIMIN avatar Nov 24 '25 16:11 glebIMIN

login ⎿ API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011CVT2B3efKEUQRB5JqeV4B"}

even login and logout is giving 500!!

bhushan-nitish avatar Nov 24 '25 16:11 bhushan-nitish

Update :

API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}, "request_id":"req_011CVT2B3efKEUQRB5JqeV4B"} .

Steps / env: – macOS (Apple Silicon) – Claude Code 2.0.50 – Originally installed via the old local ~/.claude/local/claude setup – login had been working for months, then suddenly started returning 500 without any change on my side

What I did: – Removed the old local install: rm -rf ~/.claude – Cleared the alias in my shell (unalias claude) – Reinstalled via the new official installer: curl -fsSL https://claude.ai/install.sh | bash – New binary path is now: ~/.local/bin/claude

After that, claude starts normally. Did a fresh auth too. Not sure if the fix was the reinstall itself or a backend recovery around the same time, but leaving this here in case it helps correlate and unblocking :)

bhushan-nitish avatar Nov 24 '25 16:11 bhushan-nitish

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 25 '25 10:12 github-actions[bot]

it started happening after using esc+esc checkpoint

DavraYoung avatar Dec 28 '25 13:12 DavraYoung

faced the same issue just now. Waited a few minutes and retried a few times. Did not help. Even after an hour, the session gave me still the same error. However, closing the session and starting claude again with the -r resume command worked and after that, no more errors

Stevethebeef avatar Jan 07 '26 10:01 Stevethebeef