proxy icon indicating copy to clipboard operation
proxy copied to clipboard

API Error: InvalidHTTPResponse

Open datian3d opened this issue 6 months ago • 2 comments

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.

config.json

datian3d avatar May 30 '26 12:05 datian3d

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"

FelixLisczyk avatar Jun 06 '26 08:06 FelixLisczyk

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...

julianjun avatar Jun 09 '26 16:06 julianjun

I have this too.

risperdal avatar Jun 16 '26 22:06 risperdal

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

Voynul avatar Jun 17 '26 03:06 Voynul

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: @.***>

julianjun avatar Jun 17 '26 04:06 julianjun

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.

jremen avatar Jun 19 '26 16:06 jremen