Skip to content

Intermittent API Error 500 during Claude Code sessions #28674

@lcornejoduenas

Description

@lcornejoduenas

Description

Getting frequent intermittent API Error: 500 responses during normal Claude Code CLI sessions. The errors occur randomly during tool execution and conversation flow, requiring the user to manually retry/continue.

Error message

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

Multiple occurrences with different request IDs in the same session:

  • req_011CYV9t3rgn7iL3GdkPSfrY
  • req_011CYVAcVE6E7cxtLL3VSr5x

Environment

  • OS: Linux (WSL2) — Linux 6.6.87.1-microsoft-standard-WSL2
  • Claude Code model: claude-opus-4-6
  • Date: 2025-02-25

Steps to reproduce

  1. Start a Claude Code session with multiple tool calls (MCP tools, file writes, bash commands)
  2. Execute several operations in sequence
  3. Error appears intermittently, interrupting the workflow

Impact

  • Breaks the flow of multi-step tasks
  • User has to manually ask Claude to continue after each error
  • No data loss, but significantly impacts productivity

Expected behavior

Tool calls and responses should complete without 500 errors from the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions