claude-code - 💡(How to fix) Fix [BUG] API ConnectionRefused and Image Recognition broken after upgrading to 2.1.122 with MiniMax [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54545Fetched 2026-04-30 06:42:42
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×5commented ×2

Error Message

  1. API connections fail with API Error: Unable to connect to API (ConnectionRefused)

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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/[email protected] 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" }

extent analysis

TL;DR

Downgrade to Claude Code version 2.1.110 to resolve API connection and image recognition issues.

Guidance

  • Verify that the issue is indeed related to the version upgrade by checking if downgrading to 2.1.110 resolves the problem.
  • Check the API Base URL configuration to ensure it is correct and the API is reachable.
  • Review the environment variables, such as ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL, to ensure they are properly set.
  • Consider reporting the issue to the developers to investigate and fix the regression in version 2.1.122.

Notes

The issue seems to be a regression introduced in version 2.1.122, and downgrading to 2.1.110 is a temporary workaround. However, it is essential to report the issue to the developers to ensure a proper fix is implemented in future versions.

Recommendation

Apply workaround: Downgrade to version 2.1.110, as it is the last known working version, and report the issue to the developers for further investigation and resolution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] API ConnectionRefused and Image Recognition broken after upgrading to 2.1.122 with MiniMax [2 comments, 2 participants]