Skip to content

[FEATURE]: Display the exact url opencode is failing to connect to #5945

Closed as not planned

Description

@gregid

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Existing error when opencode can't connect to the model is:

Error: Unable to connect. Is the computer able to access the url?

I propose more meaningful message that would quickly allow to check the url:

Error: Unable to connect. Is the computer able to access the following url: http://example.org ?

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Dec 22, 2025
  2. github-actions commented on Dec 22, 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.

  3. stubburntdev commented on Mar 6, 2026

    @stubburntdev

    Hi all!
    This feature is really needed because I cannot work in OpenCode since Feb 16 (maybe the bug was introduced later, but last time the application successfully worked was Feb 16).

    After one of updates I just getting "Error: Unable to connect. Is the computer able to access the url?" constantly on any request.

    The problem is solved either by rolling back to v1.2.5 (maybe elder will work too, I didn't check) or by connecting to another network (which is not an option actually).

    Logs (in %USERPROFILE%\.local\share\opencode\log) have no error messages even when I run cli agent with the next command opencode-cli.exe --log-level DEBUG.

    update: looks like my problem was related to #531 , still occurs on 1.2.20 and solved by writing the next .bat to run the desktop application:

    set HTTP_PROXY=http://127.0.0.1:<my port>
    set HTTPS_PROXY=http://127.0.0.1:<my port>
    OpenCode.exe

    Maybe the exact http error message (and code) will help to find the source of the issue in another cases?

    But current feature would be also useful.

  4. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
  5. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions