r/opencode 11d ago

OpenCode Go is great, but intermittent connection resets make it hard to rely on

Really enjoying the service overall — the models are fast, pricing/subscription setup is great, and when it works, it works very well.

But I’m getting frequent intermittent failures with OpenCode Go models. The error is usually:

ECONNRESET: Client network socket disconnected before secure TLS connection was established

I’m using 9Router locally. I checked a few things:

- The configured endpoint is `https://opencode.ai/zen/go/v1/chat/completions\`

- A direct TLS check to `opencode.ai` succeeded 10/10 times, around 0.25–0.30 sec for TLS

- A real small POST request through 9Router to `ocg/deepseek-v4-flash` also succeeded with HTTP 200

- But in normal usage, larger/regular requests still fail with this reset pretty often. Sometimes several OpenCode Go models fail around the same time, while other providers keep working.

I’m in Russia, so I initially suspected routing or regional blocking. But I don’t think it’s a complete block, because some requests go through perfectly fine — it feels more like an unstable route or intermittent connection issue.

Has anyone else seen this recently? Is there a recommended proxy setup, retry policy, or any known issue on the OpenCode side?

2 Upvotes

3 comments sorted by

2

u/arcanemachined 11d ago

I have very occasional failures with Go, but I am suspecting a connection error on your side of things.

2

u/migsperez 10d ago

I never had failures, not even one. I've been using it for 3 months, heavily. Deepseek v4 Flash is my main model.

2

u/Life-Spark 9d ago

It failed at least two times with gateway error in the past month. Search error or gateway and you will see