You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] OpenCode Go: deepseek-v4.1-flash 403 "Upstream response was not valid JSON" with large payload #50897
On OpenCode Go (subscription), deepseek-v4.1-flash returns HTTP 403 Upstream request failed: [server_error] Upstream response was not valid JSON ONLY when the request combines reasoning_effort: "high" with a large payload (~600 KB / ~150k tokens).
Same request with reasoning_effort: "low" or without the field succeeds. Small payloads with "high" succeed. Failing intermittently since 2026-09-23 09:15 UTC; the model worked fine before (800+ successful calls on the same account).
Update : the trigger is NOT reasoning_effort-specific. Re-running the A/B 30 min later: low fails and high succeeds (inverted). It is an intermittent, size-correlated upstream failure: payloads ≈600 KB fail ~15–35% of attempts regardless of reasoning_effort; payloads <~50 KB never failed across ~20 attempts.
Consistent with #50761 (route-dependent context limits in long sessions).
changed the title [-][Bug] OpenCode Go: deepseek-v4.1-flash 403 "Upstream response was not valid JSON" with reasoning_effort=high + large payload[/-][+][Bug] OpenCode Go: deepseek-v4.1-flash 403 "Upstream response was not valid JSON" with large payload[/+]on Sep 23, 2026
Thanks for the report. This is about how the model itself behaves when served through OpenCode Go (repeating itself, broken tool calls, speed, or rejecting large requests), not a bug in the OpenCode app. We pass these reports to our upstream providers. Starting a new session or running /compact usually helps with loops and oversized-request errors. Closing this to keep the tracker focused; the main discussion is in #50206.
Activity
Zowlak commentedon Sep 23, 2026
Update : the trigger is NOT reasoning_effort-specific. Re-running the A/B 30 min later: low fails and high succeeds (inverted). It is an intermittent, size-correlated upstream failure: payloads ≈600 KB fail ~15–35% of attempts regardless of reasoning_effort; payloads <~50 KB never failed across ~20 attempts.
Consistent with #50761 (route-dependent context limits in long sessions).
[-][Bug] OpenCode Go: deepseek-v4.1-flash 403 "Upstream response was not valid JSON" with reasoning_effort=high + large payload[/-][+][Bug] OpenCode Go: deepseek-v4.1-flash 403 "Upstream response was not valid JSON" with large payload[/+]neriousy commentedon Oct 21, 2026
Thanks for the report. This is about how the model itself behaves when served through OpenCode Go (repeating itself, broken tool calls, speed, or rejecting large requests), not a bug in the OpenCode app. We pass these reports to our upstream providers. Starting a new session or running
/compactusually helps with loops and oversized-request errors. Closing this to keep the tracker focused; the main discussion is in #50206.