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 — acp-command unhandled rejection · Issue #3989 · anomalyco/opencode

acp-command unhandled rejection #3989

New issue
Copy link
New issue
Copy link
Closed
Closed
acp-command unhandled rejection#3989
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't working

Description

@fnigsch
fnigsch
opened on Nov 6, 2025
Issue body actions

Description

Running opencode in a company where any network traffic needs to go through company proxy. I found that opencode crashes in function of http_proxy being set or not. https_proxy does not have the same effect. This was not the case with versions <1.0.0.

Setting http_proxy to the actual proxy address results in opencode crashing:

ERROR 2025-11-06T13:32:45 +1322ms service=acp-command promise={} reason=undefined is not an object (evaluating 'x3.data.providers') Unhandled rejection
ERROR 2025-11-06T13:32:45 +0ms service=default e=undefined is not an object (evaluating 'x3.data.providers') rejection
ERROR 2025-11-06T13:32:45 +27ms service=default e=Failed to create optimized buffer: undefinedxNaN exception

Setting http_proxy to the string "nonexistent" results in opencode crashing:

ERROR 2025-11-06T13:45:28 +1263ms service=acp-command promise={} reason=Unable to connect. Is the computer able to access the url? Unhandled rejection
ERROR 2025-11-06T13:45:28 +0ms service=default e=Unable to connect. Is the computer able to access the url? rejection
ERROR 2025-11-06T13:45:28 +18ms service=default e=Failed to create optimized buffer: undefinedxNaN exception
ERROR 2025-11-06T13:45:28 +1ms service=acp-command promise={} reason=Unable to connect. Is the computer able to access the url? Unhandled rejection
ERROR 2025-11-06T13:45:28 +0ms service=default e=Unable to connect. Is the computer able to access the url? rejection

OpenCode version

1.0.35

Steps to reproduce

See above.

Screenshot and/or share link

No response

Operating System

macOS 15.7.1

Terminal

iTerm2, gohstty, and MacOS System terminal all give the same

Activity

  1. fnigsch
    added
    bugSomething isn't working
    on Nov 6, 2025
  2. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 6, 2025
  3. github-actions commented on Nov 6, 2025

    @github-actions
    github-actionsBot
    on Nov 6, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • Error: undefined is not an object (evaluating 'x3.data.providers' ) #3868: Same exact error message "undefined is not an object (evaluating 'x3.data.providers')" with acp-command unhandled rejection
    • ENOTCONN: issue with Zed and ACP on Windows #3730: Similar acp-command connection issues with "ENOTCONN: socket is not connected" and unhandled rejections

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

  4. rekram1-node
    removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 6, 2025
  5. rekram1-node
    self-assigned this
    on Nov 6, 2025
  6. rekram1-node commented on Nov 6, 2025

    @rekram1-node
    rekram1-node
    on Nov 6, 2025
    Member
    More actions

    someone said if u unset HTTP_PROXY it should fix it

    just helped someone with same issue

  7. floux commented on Nov 6, 2025

    @floux
    floux
    on Nov 6, 2025
    More actions

    thanks @rekram1-node. unsetting http_proxy means that opencode won't be able to communicate via http anymore with the outside world. Is that not required? is https enough?

  8. floux commented on Nov 6, 2025

    @floux
    floux
    on Nov 6, 2025
    More actions

    Running a minimal example such as

    opencode run "hello" --format json --print-logs --log-level DEBUG

    indicates that no_proxy should probably contain 127.0.0.1:

    ERROR 2025-11-06T20:05:51 +9ms service=default name=Error message=Unable to connect. Is the computer able to access the url? fatal
    Error: Unexpected error, check log file at  for more details
    
    error: Unable to connect. Is the computer able to access the url?
      path: "http://127.0.0.1:58443/session",
     errno: 0,
      code: "ConnectionRefused"
    

    Will have to try this later in the original setting where I encountered the error.

  9. caomingpei commented on Nov 7, 2025

    @caomingpei
    caomingpei
    on Nov 7, 2025
    More actions

    thanks @rekram1-node. unsetting http_proxy means that opencode won't be able to communicate via http anymore with the outside world. Is that not required? is https enough?

    I had the same issue. After unsetting http_proxy, the problem was resolved. It seems that https_proxy alone is sufficient for my use case.

  10. fastknifes commented on Jan 14, 2026

    @fastknifes
    fastknifes
    on Jan 14, 2026
    More actions
    Image

    run opencode acp no response
    why ?

  11. thdxr commented on Mar 25, 2026

    @thdxr
    thdxr
    on Mar 25, 2026
    Member
    More actions

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

  12. thdxr
    closed this as completedon Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    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.