Skip to content

no_proxy is not working on code-server #6811

Closed as not planned
Closed as not planned
@lionelhe

Description

@lionelhe

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: macOS or Windows
  • Remote OS: ubi8
  • Remote Architecture: amd64
  • code-server --version: 4.89.1

Steps to Reproduce

  1. Install Code-marketplace on your kubernetes cluster
  2. Create a code-server with env variable to access this code-marketplace inside the cluster (using svc.cluster.local)
    EXTENSIONS_GALLERY={"serviceUrl":"http://code-marketplace.code-marketplace.svc.cluster.local/api", "itemUrl":"http://code-marketplace.code-marketplace.svc.cluster.local/item", "resourceUrlTemplate": "http://code-marketplace.code-marketplace.svc.cluster.local/files/{publisher}/{name}/{version}/{path}"}
  3. Also add variable environment for corporate proxy + put cluster.local as no_proxy
    http_proxy="http://corporate-proxy.com"
    https_proxy="$http_proxy"
    no_proxy=".cluster.local,.cluster.local."
  4. Open Code-server
  5. Go in extensions tab to install extension

Expected

We should be able to see all plugins proposed in our cluster code-marketplace and install them

Actual

We get error:
Error while fetching extensions.
Proxy connection ended before receiving CONNECT response.

Logs

No response

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

It seems to go through proxy even with no_proxy env variable set.

Without http_proxy set, it correctly connect to code-marketplace.

It seems to be coherent with the last status on coder/vscode #4672 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream:vscodeNeeds to be fixed upstream in VSCode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions