claude-code - 💡(How to fix) Fix API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5kjg9B4J76x7XfWKmoQ"} · check status.claude.com [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48638Fetched 2026-04-16 06:54:59
View on GitHub
Comments
1
Participants
2
Timeline
10
Reactions
0
Timeline (top)
labeled ×7commented ×1cross-referenced ×1unlabeled ×1

Error Message

When I try to call a skill or use a specific command, I encounter the following error. API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5kjg9B4J76x7XfWKmoQ"} · check status.claude.com It’s worth noting that this error happens specifically when I try to log in again. Error: upstream connect error or disconnect/reset before headers. reset reason: connection termination API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5kjg9B4J76x7XfWKmoQ"} · check status.claude.com

Error Messages/Logs

It’s worth noting that this error happens specifically when I try to log in again. Error: upstream connect error or disconnect/reset before headers. reset reason: connection termination

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When I try to call a skill or use a specific command, I encounter the following error.

API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5kjg9B4J76x7XfWKmoQ"} · check status.claude.com

I have already tried starting a new session, logging in again, and updating the version, but nothing worked. It’s worth noting that this error happens specifically when I try to log in again. Error: Falha na Requisição OAuth upstream connect error or disconnect/reset before headers. reset reason: connection termination

What Should Happen?

API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5kjg9B4J76x7XfWKmoQ"} · check status.claude.com

Error Messages/Logs

Steps to Reproduce

I have already tried starting a new session, logging in again, and updating the version, but nothing worked. It’s worth noting that this error happens specifically when I try to log in again. Error: Falha na Requisição OAuth upstream connect error or disconnect/reset before headers. reset reason: connection termination

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude Code v2.1.109

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue is likely related to an OAuth request failure, and checking the Anthropic API status or investigating the OAuth connection might provide a workaround.

Guidance

  • Investigate the "Falha na Requisição OAuth" error, which suggests an issue with the OAuth request, potentially related to the Anthropic API.
  • Check the status of the Anthropic API at status.claude.com to see if there are any known issues that could be causing the error.
  • Since the error occurs specifically when trying to log in again, try clearing any existing authentication tokens or cookies to see if that resolves the issue.
  • Consider reaching out to the Anthropic API support team for further assistance with the OAuth connection issue.

Example

No code snippet is provided as the issue does not contain sufficient code-related information.

Notes

The issue seems to be related to an external API (Anthropic API) and its OAuth connection, which might be outside the control of the Claude Code application. The fact that it worked in a previous version suggests a potential regression, but without more information on the Last Working Version, it's difficult to pinpoint the exact cause.

Recommendation

Apply workaround: Given the potential external dependency on the Anthropic API and its OAuth connection, applying a workaround such as checking the API status, investigating the OAuth request, or seeking support from the API team seems like the most viable next step.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING