r/opencode • u/Outrageous_Bus9018 • 28d ago
ECONNREFUSED: Unable to connect. - opencode-go issue
Does anyone had this issue?
When i start opencode and use go models i always get this error. It looks like i have connection problem. Free models from opencode just work fine, its only happend to opencode-go provider.
I fix this issue by open hermes and use an opencode-go model and send a chat to GO model, only after that, the connection issue gone automatically and opencode can continue.
I never had this issue with hermes.
13
Upvotes
1
u/Unlucky-Ad-8571 28d ago
Same here. The site is inaccessible too.
1
u/MLGSW4G 28d ago
Your Hermes observation is the useful clue. Hermes is Python, so it uses OpenSSL with a classical ClientHello. OpenCode 2.x embeds Bun, which since 1.4.1 offers a post-quantum key share (~1.5 KB). On lines where the DPI drops that shape for
opencode.ai, Hermes passes and OpenCode fails — that matches what you're seeing.Whether Hermes actually fixes it is worth testing separately: leave Hermes alone and retry opencode every few minutes. If it recovers by itself, the filter is keeping some per-name state; if it stays broken until Hermes connects, that's a different mechanism.
Which opencode and Hermes versions are you on? And ISP/city? Also, what does
curl.exe -sS -o NUL -w "%{http_code}"https://api.opencode.ai/return — 200 or refused?1
u/DesignAlternative622 28d ago
It's not a geo-block. Works fine on RU VPN's. I think you have MTS, Rostelekom or other "mobile" provider, that sometimes includes whitelists (белые списки) for websites. Right now is one of these times.
1
u/Capable_Candle514 28d ago
same here a ny solution
0
u/Ariquitaun 28d ago
It's not just you, the API has been glitchy for a few days with relatively frequent timeouts and random errors.