Skip to content

API Error 500 (Internal Server Error) during active session #47478

@neoncapy

Description

@neoncapy

Bug Report

Description

Receiving repeated HTTP 500 Internal Server Error responses from the Claude API during an active Claude Code session. The session becomes completely unresponsive — both the initial request and retry attempts return the same 500 error.

Error Details

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

Two consecutive request IDs observed:

  • req_011Ca21czupg8JxJf17zRhUB
  • req_011Ca21hjUGzdQZ9CrsB2y1k

Environment

  • Claude Code version: v2.1.104
  • Model: Opus 4.6 (1M context)
  • Plan: Claude Max
  • OS: macOS (Darwin 25.1.0)
  • Context usage at time of error: ~55% of context window

Steps to Reproduce

  1. Working in an active Claude Code session with moderate context usage (~55%)
  2. Session was performing code edits (R visualization code) and file operations
  3. After completing a tool call (Bash command with no output), the API returned 500
  4. Typing "continue" also returned 500
  5. Session became stuck — no further interaction possible

Expected Behavior

The API should return a valid response or a retryable error with a clear message.

Actual Behavior

Repeated 500 Internal Server Error with no recovery. The session must be abandoned and restarted, losing the current conversation context.

Impact

  • Loss of active work session context
  • Requires re-establishing full project context in a new session
  • Token cost of the abandoned session is wasted

Additional Context

This occurred during a long-running session with multiple file reads, code edits, and bash executions. The session was not at the context limit (approximately 55% usage). No unusual operations were being performed at the time of the error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions