Skip to content

OpenCode: Failed to fetch... #28424

Closed as not planned
Closed as not planned

Description

@Riven-slytherin

Description

OpenCode suddenly stopped working, showing "Failed to fetch" when sending messages. It was working normally before, then suddenly failed one day.

The log shows as pictured:

  • Failed to load resource: net::ERR_CONNECTION_REFUSED
  • GET http://127.0.0.1:XXXXX/global/health net::ERR_CONNECTION_REFUSED
  • [global-sdk] event stream error: TypeError: network error

Port keeps changing (49344, 51008, 52410, 52764, 59261, etc.), indicating local service never started successfully.

Already uninstalled and reinstalled, problem persists.

Event Before Problem Occurred

Before the error appeared, I was configuring OpenCode's MCP (Model Context Protocol), asking OpenCode to write a JSON script for listening and automatically recording conversations.

Suspected Cause

MCP configuration may have written incorrect JSON or config, causing hilo runtime to crash at startup.

Plugins

No response

OpenCode version

  • OpenCode version: v24.14.1
  • OS: Windows 11 (AMD64)
  • Network: China mainland network, tried both proxy (global mode) and direct connection, neither works

Steps to reproduce

  1. OpenCode was working normally
  2. Configured MCP, asked OpenCode to write JSON script for auto-recording conversations
  3. OpenCode suddenly showed "Failed to fetch"
  4. Uninstalled and reinstalled OpenCode
  5. Error persists, hilo runtime still not starting

Screenshot and/or share link

Image Image

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on May 20, 2026

    @github-actions
    Contributor

    This issue does not fully meet our contributing guidelines.

    What needs to be fixed:

    • Steps to reproduce are missing — please describe what you were doing when this error appeared
    • OpenCode version is not filled in — run opencode --version and include it
    • Operating System and Terminal are not filled in
    • The description only contains screenshots with no text explanation of what "Failed to match..." refers to or what the expected behavior was

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. changed the title [-]OpenCode: Failed to match...[/-] [+]OpenCode: Failed to fetch...[/+] on May 20, 2026
  3. github-actions commented on May 20, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now includes all the required information — a clear description of the problem, steps to reproduce, version details, and screenshots. We appreciate you taking the time to fill this out properly.

  4. github-actions commented on Jul 20, 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.

  5. Ceegore commented on Aug 14, 2026

    @Ceegore

    I runto into the same issue. This makes the tool almost unusable. After like 30mins of work, it just starts to stop with "Failed to fetch" and requires a tool restart to work again.

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