GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — opencode plugin <name> crashes with 'fetch() proxy.url must be a non-empty string' when HTTP_PROXY is set · Issue #23462 · anomalyco/opencode

opencode plugin <name> crashes with 'fetch() proxy.url must be a non-empty string' when HTTP_PROXY is set #23462

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
opencode plugin <name> crashes with 'fetch() proxy.url must be a non-empty string' when HTTP_PROXY is set#23462
Copy link
Assignees
jlongster

Description

@KaysonSear
KaysonSear
opened on Apr 20, 2026
Issue body actions

Describe the bug

When attempting to install any plugin using the opencode plugin <name> command, it crashes immediately if the HTTP_PROXY or HTTPS_PROXY environment variables are set.

The error thrown is:
request to https://registry.npmjs.org/<name> failed, reason: fetch() proxy.url must be a non-empty string

Steps to reproduce

  1. Export a valid proxy URL in the terminal (e.g., export HTTP_PROXY="http://127.0.0.1:7890" and export HTTPS_PROXY="http://127.0.0.1:7890").
  2. Run opencode plugin diff (or any other plugin).
  3. See error:
■  Could not install "diff"
■  request to https://registry.npmjs.org/diff failed, reason: fetch() proxy.url must be a non-empty string

Expected behavior

The opencode plugin command's internal fetch logic should correctly parse the proxy URL from the environment variables and route the request, or cleanly bypass it. It seems to be an issue with how Bun's fetch or the custom proxy agent parses the environment variable string.

Environment

  • OS: Linux
  • OpenCode Version: 1.14.18

Activity

  1. github-actions
    assigned
    rekram1-node
    on Apr 20, 2026
  2. github-actions
    added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 20, 2026
  3. github-actions commented on Apr 20, 2026

    @github-actions
    github-actionsBot
    on Apr 20, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Plugin install fails with valid proxy env: fetch() proxy.url must be a non-empty string #21468: Plugin install fails with valid proxy env: fetch() proxy.url must be a non-empty string
    • Plugin installation fails: "fetch() proxy.url must be a non-empty string" even with proxy disabled #21327: Plugin installation fails: "fetch() proxy.url must be a non-empty string" even with proxy disabled
    • Plugin install via npm fails behind proxy with 'fetch() proxy.url must be a non-empty string' #21098: Plugin install via npm fails behind proxy with 'fetch() proxy.url must be a non-empty string'
    • @npmcli/arborist in Bun runtime fails to resolve proxy env vars: proxy.url must be a non-empty string #21472: @npmcli/arborist in Bun runtime fails to resolve proxy env vars: proxy.url must be a non-empty string
    • request to https://registry.npmjs.org/oh-my-openagent failed, reason: fetch() proxy.url must be a non-empty string #21175 (closed): request to https://registry.npmjs.org/oh-my-openagent failed, reason: fetch() proxy.url must be a non-empty string
  4. thdxr
    removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. thdxr
    assigned
    jlongster
    and unassigned
    rekram1-node
    on May 3, 2026
  6. github-actions commented on Jul 5, 2026

    @github-actions
    github-actionsBot
    on Jul 5, 2026 – with GitHub Actions
    Contributor
    More actions

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

  7. github-actions
    closed this as not plannedon Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jlongster
    jlongster

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.