[BUG] API Error: Connection error.

Resolved 💬 3 comments Opened Jan 18, 2026 by jonpastore Closed Jan 22, 2026

Preflight Checklist

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

What's Wrong?

the last few versions ver the last week all have the same problem. I'm using claude --version
2.1.12 (Claude Code)

it fails to connect to the claude API and retries 10 times, then I get the error in the title. I have to quit and restart and then it works.

MCPs:
Manage MCP servers
9 servers

Local MCPs (/home/jon/.claude.json [project: /home/jon/projects/bnt/n8n workflow updater])
❯ google-appsscript · ✔ connected
google-sheets · ✔ connected

User MCPs (/home/jon/.claude.json)
basic-memory · ✔ connected
chatgpt5 · ◯ disabled
context7 · ✔ connected
gemini-coding · ✔ connected
google-sheets-personal · ✘ failed
grok-4 · ✔ connected
n8n · ✔ connected

What Should Happen?

not lose network connectivity and not disrupt the chat session.

Error Messages/Logs

● You're right. Let me trace the actual flow more carefully.                                                                                                                                                                            
                                                                                                                                                                                                                                        
● Bash(cat /home/jon/.claude/projects/-home-jon-projects-bnt-n8n-workflow-updater/0ad79750-a9ce-4340-8fcc-00c742024f94/tool-results/mcp-n8n-n8n_executions-1768752351555.txt | jq -r '.[0].text' | jq '{                                
        prepare_opp_create: .data.nodes["Prepare Update Unmatched Payment Action Opp Create"] | {itemsInput, itemsOutput, status},                                                                                                      
        update_action_opp: .data.nodes["Update Unmatched Action Opp Create"] | {itemsInput, itemsOutput, status},                                                                                                                       
        update_email_phone: .data.nodes["Update Email and Phone "] | {itemsInput, itemsOutput, status}                                                                                                                                  
      }' 2>/dev/null)                                                                                                                                                                                                                   
  ⎿  {                                                                                                                                                                                                                                  
       "prepare_opp_create": {                                                                                                                                                                                                          
         "itemsInput": 0,                                                                                                                                                                                                               
         "itemsOutput": 1,                                                                                                                                                                                                              
         "status": "success"                                                                                                                                                                                                            
       },                                                                                                                                                                                                                               
       "update_action_opp": {                                                                                                                                                                                                           
         "itemsInput": 0,                                                                                                                                                                                                               
         "itemsOutput": 1,                                                                                                                                                                                                              
         "status": "success"                                                                                                                                                                                                            
       },                                                                                                                                                                                                                               
       "update_email_phone": {                                                                                                                                                                                                          
         "itemsInput": 0,                                                                                                                                                                                                               
         "itemsOutput": 0,                                                                                                                                                                                                              
         "status": "error"                                                                                                                                                                                                              
       }                                                                                                                                                                                                                                
     }                                                                                                                                                                                                                                  
  ⎿  API Error: Connection error.                                                                                                                                                                                                       
                                                                                                                                                                                                                                        
✻ Worked for 3m 44s

Steps to Reproduce

use it for a little while.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

sonnet 4.5

Claude Code Version

2.1.12

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

I'm using Bash on Pop_os! based on ubuntu 22.04 LTS

View original on GitHub ↗

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