Skip to content

socket connection was closed unexpectedly. From more information, pass verbose: true in the second argument to fetch #3511

Closed

Description

@jcubic

Description

I got an error from MCP server (Context 7):

socket connection was closed unexpectedly. From more information, pass verbose: true in the second argument to fetch

NOTE: I just assume it's MCP, it may be an internal error of OpenCode or interaction with GitHub Copilot model that I'm using.

OpenCode version

0.15.20

Steps to reproduce

You can try to create MCP that will close unexpectedly.

Screenshot and/or share link

Image

Operating System

Fedora 42

Terminal

Xfce Terminal (based on VTE)

Activity

  1. github-actions commented on Oct 28, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. changed the title [-]MCP error break OpenCode TUI[/-] [+]socket connection was closed unexpectedly. From more information, pass verbose: true in the second argument to fetch[/+] on Oct 28, 2025
  3. rekram1-node commented on Oct 28, 2025

    @rekram1-node
    Contributor

    Oof it isn't supposed to pollute the chat like that, I think I wrote a fix for it that will be in next release

    As for the error that happens when the upstream provider is dropping your connection (p sure)

  4. self-assigned this
    on Oct 28, 2025
  5. thdxr commented on Mar 25, 2026

    @thdxr
    Member

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

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions