Skip to content

Cannot connect to API: The socket connection was closed unexpectedly #39557

Closed as not planned

Description

@annejan-svg

Description

After working flawless for a couple of hours it suddenly started showing the error "Cannot connect to API: The socket connection was closed unexpectedly". I'm on Home Assistant running Opencode version 2.3.8. Any help is much appreciated.

Plugins

No response

OpenCode version

2.3.8

Steps to reproduce

Start opencode
Give command
Response is Cannot connect to API....

Screenshot and/or share link

Image

Operating System

Home Assistant

Terminal

No response

Activity

  1. kai-kleinbard-tyto commented on Jul 30, 2026

    @kai-kleinbard-tyto

    Closing — no template used, insufficient information to investigate. Please reopen with the Bug Report or Feature Request template filled out (version, OS, repro steps, logs).

  2. github-actions commented on Sep 29, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  3. annejan-svg commented on Oct 1, 2026

    @annejan-svg
    Author

    I'm having the same issues again after updating to 3.1.0...

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions