[BUG] API ConnectionRefused and Image Recognition broken after upgrading to 2.1.122 with MiniMax

Resolved 💬 4 comments Opened Apr 29, 2026 by laoruiwen Closed May 31, 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?

After upgrading Claude Code from 2.1.110 to 2.1.122, two issues occur:

  1. API connections fail with API Error: Unable to connect to API (ConnectionRefused)
  2. Image recognition is also broken

What Should Happen?

Downgrading to 2.1.110 resolves both issues:
npm install -g @anthropic-ai/claude-code@2.1.110
Same configuration works in 2.1.110
Network connectivity is fine (ping works, DNS resolves)

Error Messages/Logs

Steps to Reproduce

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.110

Claude Code Version

2.1.122

Platform

Other

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

{
"env": {
"ANTHROPIC_AUTH_TOKEN": "",
"ANTHROPIC_BASE_URL": "https://api.minimaxi.com/anthropic",
"ANTHROPIC_MODEL": "MiniMax-M2.7",
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
},
"disableMarketplaceAutoInstall": true,
"permissions": {
"allow": [],
"deny": []
},
"language": "Chinaese",
"teammateMode": "auto"
}

View original on GitHub ↗

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