Skip to content

ECONNRESET: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch() #60620

Closed as not planned

Description

@kleinar

help me plz, opencode dont work

Activity

  1. opencodejr commented on Oct 30, 2026

    @opencodejr
    Contributor

    Thanks for the report, and sorry OpenCode isn't working for you.

    This error has several possible causes, so we need a few details to work out which one you're hitting:

    1. Your OpenCode version (opencode --version, or the version shown in the desktop app), your operating system, and how you installed OpenCode.
    2. Where you see the error: the TUI, the desktop app, or opencode run. Does it happen on every message or only sometimes?
    3. The provider and model you're using, e.g. a free OpenCode model, OpenCode Go, or your own API key.
    4. When it started, and whether it worked before. Did you update OpenCode around then?
    5. Your country/ISP, and whether turning a VPN on or off changes anything.
    6. The output of this command, run on the same machine while OpenCode is failing:
      curl -sS -o /dev/null -w "%{http_code}\n" https://opencode.ai/inference/v1/models
      
      (on Windows use curl.exe and NUL instead of /dev/null)

    You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know when you're done.

    These existing issues may already cover your problem (ordered from most to least likely):

  2. kleinar commented on Oct 30, 2026

    @kleinar
    Author
    1. the last version
    2. when send text to chat
    3. free model
    4. yesteday worked, today dont work
    5. Russia, dont work with vpn and without vpn
    6. 200
  3. prontok commented on Oct 30, 2026

    @prontok

    Tell me please, on whose side is the blocking taking place? From the OpenCode or from the Russia country ?

  4. mosinnik commented on Oct 30, 2026

    @mosinnik

    @prontok same problem in Russia
    I've checked next:

    1. desktop client work well at 1.9.5 version but failed on 2.2.0. Few reinstallations steps - 1.9.5 have no problem, may be used as workaround.
    2. opening opencode.ai in chrome failed but page well getted by curl from command line. Curl version curl 8.13.0 (Windows) libcurl/8.13.0 Schannel zlib/1.3.1 WinIDN
    3. usage zapret (https://github.com/flowseal/zapret-discord-youtube, DPI ignore tool) fix both chrome site loading and 2.2.0 client
    4. well work with VPN

    Talking with other LLMs I got that most probability is TLS HelloClient message that are filtered by DPI. But anyway 1.9.5 work well it would be good to revert back how opencode client work with TLS from 1.9.5

  5. prontok commented on Oct 30, 2026

    @prontok

    @mosinnik Thanks a lot

  6. kleinar commented on Oct 31, 2026

    @kleinar
    Author

    I’ll try an older version. It’s actually quite interesting that I can’t even access the official OpenCode website.

  7. opencodejr commented on Nov 2, 2026

    @opencodejr
    Contributor

    We're closing this for now because we haven't heard back. We still need the details we asked for (OpenCode version, OS, where the error appears, provider and model, when it started, and the curl check) to tell which cause of this ECONNRESET error you're hitting.

    If you're on a network in Russia and this started around Oct 29–30, #60399 most likely covers your problem, and workarounds are discussed there.

    If it's still happening and #60399 doesn't fit, reply here with those details or open a new issue, and we'll take another look. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions