[BUG] API Error (TypeError), no connection

Resolved 💬 2 comments Opened May 23, 2025 by tonydavis629 Closed May 23, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.2 (Claude Code)
  • Operating System: Ubuntu 22.04.5 LTS
  • Terminal: zsh/bash

Bug Description

> say hi
  ⎿  API Error (Connection error.) · Retrying in 1 seconds… (attempt 1/10)
    ⎿  TypeError (fetch failed)
  ⎿  API Error (Connection error.) · Retrying in 1 seconds… (attempt 2/10)
    ⎿  TypeError (fetch failed)
  ⎿  API Error (Connection error.) · Retrying in 2 seconds… (attempt 3/10)
    ⎿  TypeError (fetch failed)
  ⎿  API Error (Connection error.) · Retrying in 4 seconds… (attempt 4/10)
    ⎿  TypeError (fetch failed)

Steps to Reproduce

Prompt claude code in any way

Expected Behavior

Working connection

Actual Behavior

API Error / TypeError

Additional Context

This started happening yesterday after an update. All other networking working normally. MCP connections working normally.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗