Skip to content

macOS: Bun runtime gets ECONNREFUSED to LAN gateway IPs (custom provider baseURL) while Node/curl work; HTTP_PROXY works around it #51513

Closed

Description

@tedivm

Description

Same exact issue as #37432, which was automatically closed.

Plugins

None

OpenCode version

opencode v2.0.18

Steps to reproduce

It's all documented in the original ticket.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Sep 26, 2026

    @github-actions
    Contributor

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

    • #37432: Reports the same macOS embedded Bun connection failure to LAN-hosted custom providers, with Node/curl success and an HTTP_PROXY workaround.
    • #28418: Reports the same embedded Bun FailedToOpenSocket failure for OpenAI-compatible providers on LAN addresses.
    • #38854: Reports OpenCode failing to connect to a LAN-hosted Ollama server on macOS while curl succeeds.
  2. tedivm commented on Sep 26, 2026

    @tedivm
    Author

    Resolved with some help from discord.

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