Skip to content

[Bug] OpenCode Crashes on Launch When http_proxy Environment Variable is Set #7155

@dsdashun

Description

@dsdashun

Description

OpenCode crashes immediately on startup when the http_proxy environment variable is set with the right value, displaying [object Object] .

Plugins

None

OpenCode version

1.1.4

Steps to reproduce

  1. Make sure the proxy can be connected successfully
  2. Start the opencode with the http_proxy environment set, like the following command:
http_proxy='http://127.0.0.1:18080' opencode

Some additional points:

  • If the endpoint cannot be connected, the error message is different, please see the screenshot below.
  • If the http_proxy is not set, it can be started successfully.
  • If start OpenCode with some other similar environment variables, like https_proxy, all_proxy, it also can be started successfully, except http_proxy .

Screenshot and/or share link

http_proxy is set with a normal endpoint:

Image

http_proxy is set with a wrong endpoint:

Image

Operating System

Debian 12.12

Terminal

Windows Terminal

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