Skip to content

An error occurs #60455

Closed as not planned
Closed as not planned

Description

@expert-14

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

Activity

  1. opencodejr commented on Oct 30, 2026

    @opencodejr
    Contributor

    Thanks for the report! This error can come from several different causes, so we need a few details to work out which one you're hitting:

    1. OpenCode version (opencode --version), your OS, and how you installed OpenCode.
    2. Where you see the error: the TUI, the desktop app, opencode run, or another client (e.g. OpenChamber).
    3. Provider and model you were using (e.g. OpenCode Zen/Go free models, Anthropic, OpenAI, a custom/OpenAI-compatible endpoint).
    4. When it happens: on every message, after the session has been idle for a while, or during long or complex responses. Does retrying help?
    5. Whether you're behind a proxy, VPN, firewall or antivirus, and whether a VPN changes anything.
    6. If you can, the logs from running with --print-logs around the time of the error.

    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. a1elen commented on Oct 30, 2026

    @a1elen

    same, yesterday was working perfectly, today i cant even open opencode.ai

  3. MLGSW4G commented on Oct 30, 2026

    @MLGSW4G

    @a1elen — one quick question that would pin this down. While the browser can't open opencode.ai, does curl still work from the same machine, same moment?

    curl.exe -sS -o NUL -w "%{http_code}`n" https://opencode.ai/inference/v1/models

    If that prints 200 while Chrome fails, we are hitting the same thing on several Rostelecom lines today: the DPI drops the TLS handshake only when the ClientHello carries a post-quantum key share (Chrome and Bun send one, Schannel curl does not — measured 3/3 timeout vs 3/3 OK against the same IP). Also, which ISP and city are you in?

  4. a1elen commented on Oct 30, 2026

    @a1elen

    @MLGSW4G yeah, 200
    Irkutsk, Rostelecom

  5. MLGSW4G commented on Oct 30, 2026

    @MLGSW4G

    @a1elen confirmed the discriminator here: curl returns 200 on the same machine and moment while the browser cannot load the site (Irkutsk, Rostelecom). That is the same condition as #60399 and #60422 — and not an OpenCode defect, since the connection is dropped during the TLS handshake before any request is sent.

    Please follow #60399 for the measurements and the hostlist workaround.

  6. PAVchensky commented on Oct 30, 2026

    @PAVchensky

    same 200. Msk

  7. Denisz0785 commented on Oct 31, 2026

    @Denisz0785

    same, Krasnodar, Russian Federation

  8. opencodejr commented on Nov 2, 2026

    @opencodejr
    Contributor

    We're closing this for now because we haven't heard back with the details we asked for: OpenCode version, OS and install method, where the error appears, the provider and model, when it happens, any proxy/VPN/firewall, and --print-logs output. The ECONNRESET: The socket connection was closed unexpectedly error has several possible causes, and without these details we can't tell which one you're hitting or reproduce it.

    If it's still happening, please reply here with those details and we can reopen it. You may also want to check whether one of these covers your case:

    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