API Error: InvalidHTTPResponse
This oc-go-cc has been a fantastic tool. However, in some cases, like one in every hour or so, I got this error message from the claude code CLI console, and cc would just stop running.
⎿ API Error: InvalidHTTPResponse fetching "http://127.0.0.1:7890/v1/messages?beta=true". For more information, pass verbose: true
in the second argument to fetch()
I could ask the cc to retry and most times it would just pass.
I'm wondering if this is my own setting issue or just a glitch in the oc-go-cc?
enclosed my configuration.
I'm experiencing the same issue. It has occurred with multiple models so far, including DeepSeek V4 Pro and MiMo V2.5 Pro. Here is the corresponding log from the proxy console:
time=2026-06-06T10:18:49.288+02:00 level=INFO msg="received request" model=deepseek-v4-pro streaming=true messages=145 tools=25 max_tokens=32000
time=2026-06-06T10:18:49.323+02:00 level=INFO msg="routing request" scenario=default model=deepseek-v4-pro provider=opencode-go tokens=52958
time=2026-06-06T10:18:49.323+02:00 level=INFO msg="attempting streaming model" model=deepseek-v4-pro provider=opencode-go
time=2026-06-06T10:19:10.324+02:00 level=INFO msg="client disconnected during stream"
yeah,i met this as well. I find that when context got to about 100k+-200k tokens, claude code will provide a prompt:API Error: InvalidHTTPResponse fetching "http://127.0.0.1:3456/v1/messages?beta=true". For more information, pass verbose: true in the second argument to fetch() whats more, OP said "I could ask the cc to retry and most times it would just pass.", but claude code can't skip this error,and it means this session collapse.To add, I use deepseek v4 in claude code and i use Latest version of oc-go-cc.Hope someone can help me...
I have this too.
I have also encountered this issue and it has been bothering me, affecting my work. In order to ensure a smooth process, I have no choice but to use the official API
infact i use cc now and i dont met this error. you can try it too
---Original--- From: @.> Date: Wed, Jun 17, 2026 11:30 AM To: @.>; Cc: @.@.>; Subject: Re: [samueltuyizere/oc-go-cc] API Error: InvalidHTTPResponse (Issue #62)
Voynul left a comment (samueltuyizere/oc-go-cc#62)
I have also encountered this issue and it has been bothering me, affecting my work. In order to ensure a smooth process, I have no choice but to use the official API
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today! You are receiving this because you commented.Message ID: @.***>
Same issue here. Mimo V2.5 Pro as default, minimax M3 as thinking, Mimo V2.5 for background, M3 for long context. Default fallback to DS 4 Flash and Kimi models.