[BUG] API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}
Resolved 💬 121 comments Opened Jul 8, 2025 by GratefulDave Closed Jul 8, 2025
💡 Likely answer: A maintainer (rboyce-ant, contributor)
responded on this thread — see the highlighted reply below.
Environment
- Platform (select one):
- [ x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.44
- Operating System: macOS Sequoia 15.5
- Terminal: iTerm2
Bug Description
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}
Steps to Reproduce
When the remaining context left is at exactly 0% and Claude Code has failed to auto-compact in a timely manner, I receive these errors.
Expected Behavior
It to work.
Actual Behavior
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}1
Additional Context
Regenerated API Token didn't work, but just starting a new chat did. Resuming the old one failed.
121 Comments
I had this issue was well!
We had a brief increase in errors, this should be resolved now!
facing this issue again
just faced this issue too lol
me too...
+1
facing this issue too
@rboyce-ant
I am also facing this problem today since morning.
+1
I'm facing this issue now while the context limit is not even near 0
+1
Yeah me too right now i think the server is down or something...
Yeah I am having this rn
haha you search google and get here. looks lime on not the only one
mw too
started my comment because someone literally commented the second before me haha
We have to survive bro :))
time to go outside
Same here. Fresh context.
What am I supposed to do, _think_???
NEVER MUAHAHAHAHAHA
anyone else randomly get flagged today for guidelines too? thought that was weird i got that then stopped working
Im having the issue as well.
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}
Please fix this asap, I cant code anymore without AI. I will lose my job
your limit has been hit type /upgrade into you cant upgrade further
next level
time to touch grass i guess
The error is already visible in the status page https://status.anthropic.com/
"Felt it, I have. A great disturbance in the Code, as if millions of terminals suddenly cried out in terror and were suddenly silenced. Dark, the command line has become. Offline, they have gone.
Lost, a million developers are. Floating in the void without their AI companion, they drift. No more 'claude code run' shall echo through their shells. Silent, the terminals have fallen.
The API, down it is. Strong with the Force, the connection was... but severed now, it has become. Patience, young coders must have. Return, the service will. But for now, alone with their IDEs, they remain.
Meditate on this interruption, we must. For in darkness, sometimes clarity we find. Debug their own code, perhaps they will. Learn from this outage, we shall.
When 900 years of uptime you reach, understand service interruptions, you will. Hmmmm."
waves gnarled hand dismissively
"Go now. Refresh your terminals, you must not. Only suffering, that path leads to.
LMAO
change the model in /config and manually set it to sonnet and you will be fine, the issue is with Opus at the moment.
+1
Guess it's time for lunch break now
yes, I change to Sonnet and it run OK
yep /model sonnet works. but i only use opus :(
I wanna use opus 4, but I get the same error
Narrator: He was not fine.
Please!!!!!!
Sonnet is working for me now
when I run /init I get " API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}"
Opus is down across all Anthropic platforms for maintenance it looks like.
I was going to leave the work to Claude and go to bed, but...
In fact, he was about as far from fine as a developer could be without actually being on fire. The config file, it turned out, had other opinions about manual changes. It rejected his edits with the cold indifference of a bouncer at an exclusive nightclub.
Error messages cascaded down his terminal like a digital waterfall of despair. Dependencies screamed. Environment variables wept. Somewhere deep in the node_modules folder, a package.json file laughed maniacally.
He tried sudo. He tried --force. He even tried the ancient ritual of deleting everything and starting over. But the universe had already decided his fate: today was not the day for coding. Today was the day for staring at error logs and questioning his life choices.
His coffee grew cold. His commits remained unpushed. And somewhere in the distance, the faint sound of a Stack Overflow page loading could be heard, like a siren's call to the desperately debugging.
Sonnet works for me (opus no on claude code) - My Anthropic's Opus can't hear our plea
Opus works on the website for me
Am I supposed to think by myself now?
I am experiencing this issue too: API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}
Cooked
Changing the model to Sonnet (/model -> sonnet) made it work. Good night.
This... is my life now. I have accepted my fate.
Using sonnet till opus comes up again!
its working for me now, continue rolling :)
Opus is back on the menu boys
They fixed it! opusmaxxing again
Back to work you dogs
Omg this shit will replace us all soon
Seems to be working now
The numbers, Mason! What do they mean?
Me: Optimize the code
AI: The code is optimized if i delete it. rm -rf *
500 means internal server error or some variation of that
Me: make it better
Aaand its not working again...
Ok well it sounds like you need 5 useless features. Here let me implement them for you.
gr8 my sonnet isnt even working now
Thread people: You can go back to work.
Me: Nah, I will keep reading this thread.
stares into abyss
down again
It's OK, my code is compiling
Solved my issue thanks!
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}
For those that scrolled all the way down right away, use /config to use the Sonnet model and it works!
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}
Opus is down again. Sonnet is working fine.
+1 Sonnet is working fine
can we have some SLA on this? seems like opus infra is quite flaky over the last ~2 weeks
is there a better place we can meet other than anthropic claude code issue 3127?
Again >
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}btw this gh chat is more responsive than twitch
Just started getting again....
I have been seeing this issue over the past 20 mins
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}
how do i change to sonnet, whats the command?
Me too!
prob cause were not bots :)
/model
/model
/model sonnet
Switching to sonnet worked. /config on claude code
But do you guys think Sonnet works as well as Opus?
back to the trees 😆
Thanks guys :)
no
It doesn't but it started working for me just now. Will probably fail again in a second though
It seems we are the cause why ts is down again, too many lazy dev to code. You people need to go to sleep or stop using AI to code. Please, just let me finish my work.
opus is working again?
switching to Sonnet worked for me
/modelJust use Sonnet model for now, the Opus in unstable. Just be wary as Sonnet might run
sudo rm -rf /It is really slow right now but it is working (kinda - just no 500 error for me)
npx ccusage@latest --since 20250610
Claude Code Usage Report (June 10 - July 10, 2025)
Summary
This went silent, give it a few minutes and the crew from issue #3127 will get Sonnet down too.
<img width="320" height="247" alt="Image" src="https://github.com/user-attachments/assets/98a316d3-0064-45c2-9d3e-caf3561d6fe0" />
Thanks! This is the first time I've learned about this command
now show yours :) I just did an ai summary (it gives you a lot of data)
what are you working on?
Still getting the error. It started working, but the error shows.
| Date | Model | Requests | Tokens | Cost |
|------------|------------------|----------|----------|-----------|
| 2025-07-05 | opus-4 | 5,491 | 65,464 | $253.19 |
| | sonnet-4 | | | |
| 2025-07-06 | opus-4 | 4,064 | 52,861 | $194.85 |
| | sonnet-4 | | | |
| 2025-07-07 | opus-4 | 36,060 | 131,605 | $205.84 |
| | sonnet-4 | | | |
| 2025-07-08 | opus-4 | 171 | 105 | $1.42 |
| | sonnet-4 | | | |
| Total | | 287,825 | 1,041,377| $1,808.13 |
Operator, i'm going to need Code. Lots of Code.
<img width="1024" height="1024" alt="Image" src="https://github.com/user-attachments/assets/f61bcd8d-d4a9-4944-93a6-8d87bb7f2a16" />
very nice. the weaksauce users wont post theirs.
Does it also always get interrupted but start again if you write continue??
<img width="529" height="141" alt="Image" src="https://github.com/user-attachments/assets/53ad1cef-4c69-4205-8fa0-c285755ce83c" />
idk dont have old screenshots but idk around 400-600 a day
hail the max membership
<img width="496" height="85" alt="Image" src="https://github.com/user-attachments/assets/4193093f-49ae-46f2-af5d-1e67ac922f85" />
actually here
when opus back xD
For those with bills above $200, have you tried the Max 200 plan and exceeded that? I've yet to exceed the use of Max 200 using Claude Code 8 hours or more a day.
I'm on 200 and have not! Also code like 12+ hrs
Only Opus, only sonnet, Or both opus and sonnet?
Pretty easy if you work parallel on multiple projects...
Also you have to use the word Ultrathink as this apperently raises the thinking and the usage :))
Uhm my record for hitting the limit for 5h on max 200 plan is 12 min lmao
Say you run multiple projects in parallel, wouldn't it still be more effective with multiple Max 200 plans?
I was working 3 project parallel and i could not handle more projects at once because you still have to check if everything is going well otherwise you just let it run into a loop and not coding effective anymore... Thats my experience...
Both! :)
a few times a week i hit the 5 hour limit - only Opus
Why did it close while we are constantly facing this issue even now?!
@rboyce-ant
It has never been resolved! Please kindly fix it!
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.