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

View original on GitHub ↗

121 Comments

Erickuokuo · 1 year ago

I had this issue was well!

rboyce-ant contributor · 1 year ago

We had a brief increase in errors, this should be resolved now!

Ishannaik · 1 year ago

facing this issue again

CrodBac4rdi · 1 year ago

just faced this issue too lol

miyajiyuta · 1 year ago

me too...

manmal · 1 year ago

+1

tavaresProg · 1 year ago

facing this issue too

manmal · 1 year ago

@rboyce-ant

ahmedchijai · 1 year ago

I am also facing this problem today since morning.

beng-toast · 1 year ago

+1

ahmedebid · 1 year ago

I'm facing this issue now while the context limit is not even near 0

HuyHK-psa · 1 year ago

+1

Sleeeze · 1 year ago

Yeah me too right now i think the server is down or something...

camspilly · 1 year ago

Yeah I am having this rn

danielechelon · 1 year ago

haha you search google and get here. looks lime on not the only one

kaysiradek1 · 1 year ago

mw too

CrodBac4rdi · 1 year ago

started my comment because someone literally commented the second before me haha

Sleeeze · 1 year ago
haha you search google and get here. looks lime on not the only one

We have to survive bro :))

faw01 · 1 year ago

time to go outside

vrogojin · 1 year ago

Same here. Fresh context.

rcisneros138 · 1 year ago

What am I supposed to do, _think_???

Sleeeze · 1 year ago
time to go outside

NEVER MUAHAHAHAHAHA

kaysiradek1 · 1 year ago

anyone else randomly get flagged today for guidelines too? thought that was weird i got that then stopped working

akosiyawin · 1 year ago

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

CrodBac4rdi · 1 year ago

your limit has been hit type /upgrade into you cant upgrade further
next level
time to touch grass i guess

Sleeeze · 1 year ago

The error is already visible in the status page https://status.anthropic.com/

danielechelon · 1 year ago

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

StochasticNolan · 1 year ago
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

LMAO

salmanta · 1 year ago

change the model in /config and manually set it to sonnet and you will be fine, the issue is with Opus at the moment.

PangMing · 1 year ago

+1

PaulRyu · 1 year ago

Guess it's time for lunch break now

apple-ouyang · 1 year ago
change the model in /config and manually set it to sonnet and you will be fine, the issue is with Opus at the moment.

yes, I change to Sonnet and it run OK

danielechelon · 1 year ago

yep /model sonnet works. but i only use opus :(

syntaxsurge · 1 year ago

I wanna use opus 4, but I get the same error

manmal · 1 year ago
change the model in /config and manually set it to sonnet and you will be fine

Narrator: He was not fine.

gonyykim · 1 year ago

Please!!!!!!

StochasticNolan · 1 year ago
> change the model in /config and manually set it to sonnet and you will be fine Narrator: He was not fine.

Sonnet is working for me now

mcbeaker · 1 year ago

when I run /init I get " API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}"

npendrey · 1 year ago

Opus is down across all Anthropic platforms for maintenance it looks like.

yasuhiro-y · 1 year ago

I was going to leave the work to Claude and go to bed, but...

danielechelon · 1 year ago
> change the model in /config and manually set it to sonnet and you will be fine Narrator: He was not fine.

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.

mcbeaker · 1 year ago

Sonnet works for me (opus no on claude code) - My Anthropic's Opus can't hear our plea

danielechelon · 1 year ago
Opus is down across all Anthropic platforms for maintenance it looks like.

Opus works on the website for me

eL1fe · 1 year ago

Am I supposed to think by myself now?

awaisalimir · 1 year ago

I am experiencing this issue too: API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}

StochasticNolan · 1 year ago
I am experiencing this issue too: API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}

Cooked

yasuhiro-y · 1 year ago

Changing the model to Sonnet (/model -> sonnet) made it work. Good night.

danielechelon · 1 year ago
I am experiencing this issue too: API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}

This... is my life now. I have accepted my fate.

KaranSantra · 1 year ago

Using sonnet till opus comes up again!

PangMing · 1 year ago

its working for me now, continue rolling :)

danielechelon · 1 year ago
its working for me now, continue rolling :)

Opus is back on the menu boys

lucasiezzi · 1 year ago

They fixed it! opusmaxxing again

npendrey · 1 year ago

Back to work you dogs

Sleeeze · 1 year ago

Omg this shit will replace us all soon

PersonalGarlic · 1 year ago

Seems to be working now

caniswim · 1 year ago

The numbers, Mason! What do they mean?

danielechelon · 1 year ago
Omg this shit will replace us all soon

Me: Optimize the code
AI: The code is optimized if i delete it. rm -rf *

danielechelon · 1 year ago
The numbers, Mason! What do they mean?

500 means internal server error or some variation of that

myalchemy · 1 year ago

Me: make it better

Sleeeze · 1 year ago

Aaand its not working again...

danielechelon · 1 year ago
Me: make it better

Ok well it sounds like you need 5 useless features. Here let me implement them for you.

kaysiradek1 · 1 year ago

gr8 my sonnet isnt even working now

matiasgaletto · 1 year ago

Thread people: You can go back to work.
Me: Nah, I will keep reading this thread.

npendrey · 1 year ago

stares into abyss

tavaresProg · 1 year ago

down again

danielechelon · 1 year ago

It's OK, my code is compiling

dardameiz · 1 year ago
Changing the model to Sonnet (/model -> sonnet) made it work. Good night.

Solved my issue thanks!

mikolaj-mialkowski · 1 year ago

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

ghost-ng · 1 year ago

For those that scrolled all the way down right away, use /config to use the Sonnet model and it works!

vnakhate · 1 year ago

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

PersonalGarlic · 1 year ago

Opus is down again. Sonnet is working fine.

mikolaj-mialkowski · 1 year ago

+1 Sonnet is working fine

rayli09 · 1 year ago

can we have some SLA on this? seems like opus infra is quite flaky over the last ~2 weeks

danielechelon · 1 year ago

is there a better place we can meet other than anthropic claude code issue 3127?

canberksinangil · 1 year ago

Again >
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}

mikolaj-mialkowski · 1 year ago

btw this gh chat is more responsive than twitch

ZerkerEOD · 1 year ago

Just started getting again....

richmarlatt · 1 year ago

I have been seeing this issue over the past 20 mins
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}}

lucasiezzi · 1 year ago

how do i change to sonnet, whats the command?

jjones7 · 1 year ago

Me too!

danielechelon · 1 year ago
btw this gh chat is more responsive than twitch

prob cause were not bots :)

mikolaj-mialkowski · 1 year ago

/model

Sleeeze · 1 year ago
how do i change to sonnet, whats the command?

/model

danielechelon · 1 year ago
how do i change to sonnet, whats the command?

/model sonnet

vnakhate · 1 year ago

Switching to sonnet worked. /config on claude code

npendrey · 1 year ago

But do you guys think Sonnet works as well as Opus?

michalcerny · 1 year ago

back to the trees 😆

lucasiezzi · 1 year ago

Thanks guys :)

danielechelon · 1 year ago
But do you guys think Sonnet works as well as Opus?

no

ZerkerEOD · 1 year ago

It doesn't but it started working for me just now. Will probably fail again in a second though

akosiyawin · 1 year ago

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.

moseaan · 1 year ago

opus is working again?

richmarlatt · 1 year ago

switching to Sonnet worked for me
/model

syntaxsurge · 1 year ago

Just use Sonnet model for now, the Opus in unstable. Just be wary as Sonnet might run sudo rm -rf /

ZerkerEOD · 1 year ago
opus is working again?

It is really slow right now but it is working (kinda - just no 500 error for me)

danielechelon · 1 year ago

npx ccusage@latest --since 20250610

Claude Code Usage Report (June 10 - July 10, 2025)

Summary

  • Total Cost: $3,408.28
  • Total Tokens: 1,488,705,000+ tokens
  • Model: opus-4 (switched to sonnet-4 on July 10)
matiasgaletto · 1 year ago

This went silent, give it a few minutes and the crew from issue #3127 will get Sonnet down too.

danielechelon · 1 year ago
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" />

syntaxsurge · 1 year ago
npx ccusage@latest --since 20250610 ## Claude Code Usage Report (June 10 - July 10, 2025) ### Summary Total Cost: $3,408.28 Total Tokens: 1,488,705,000+ tokens * Model: opus-4 (switched to sonnet-4 on July 10)

Thanks! This is the first time I've learned about this command

danielechelon · 1 year ago
> npx ccusage@latest --since 20250610 > ## Claude Code Usage Report (June 10 - July 10, 2025) > ### Summary > > Total Cost: $3,408.28 > Total Tokens: 1,488,705,000+ tokens > * Model: opus-4 (switched to sonnet-4 on July 10) 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)

lucasiezzi · 1 year ago
npx ccusage@latest --since 20250610 ## Claude Code Usage Report (June 10 - July 10, 2025) ### Summary Total Cost: $3,408.28 Total Tokens: 1,488,705,000+ tokens * Model: opus-4 (switched to sonnet-4 on July 10)

what are you working on?

Boanerges1996 · 1 year ago

Still getting the error. It started working, but the error shows.

rayli09 · 1 year ago

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

danielechelon · 1 year ago
what are you working on?

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" />

danielechelon · 1 year ago
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

very nice. the weaksauce users wont post theirs.

Sleeeze · 1 year ago

Does it also always get interrupted but start again if you write continue??

CrodBac4rdi · 1 year ago

<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

CrodBac4rdi · 1 year ago

<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

thomastthai · 1 year ago

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.

kaysiradek1 · 1 year ago
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

mcbeaker · 1 year ago
> 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?

Sleeeze · 1 year ago
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.

Pretty easy if you work parallel on multiple projects...

Sleeeze · 1 year ago

Also you have to use the word Ultrathink as this apperently raises the thinking and the usage :))

CrodBac4rdi · 1 year ago

Uhm my record for hitting the limit for 5h on max 200 plan is 12 min lmao

thomastthai · 1 year ago

Say you run multiple projects in parallel, wouldn't it still be more effective with multiple Max 200 plans?

Sleeeze · 1 year ago
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...

kaysiradek1 · 1 year ago
> > 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?

Both! :)

JohnConnorNPC · 1 year ago
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.

a few times a week i hit the 5 hour limit - only Opus

behroozazarkhalili · 11 months ago

Why did it close while we are constantly facing this issue even now?!

behroozazarkhalili · 11 months ago
We had a brief increase in errors, this should be resolved now!

@rboyce-ant
It has never been resolved! Please kindly fix it!

github-actions[bot] · 11 months 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.