-
Notifications
You must be signed in to change notification settings - Fork 5.9k
no_proxy is not working on code-server #6811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is it failing to install the extensions or is it failing to list them at all? The listing request is sent from the browser, while the install happens from the backend, so I wonder if that has something to do with it. |
It is failing to get the extension list. I guess more than proxy-agent used by coder/vscode does not succeed to use no_proxy env variable. Maybe use of last version of proxy-agent Can correct that. |
The list query is supposed to run from the browser. If your browser does not have access to |
Er wait, maybe I misread. You said you can list them without the proxy? I am not entirely sure what is going on then. Maybe check the network tab in the browser dev tools and check to see if the requests are failing. |
That |
Yes I "can" without the proxy
|
Interesting, yeah searching extensions happens purely from the browser, so the server should not be involved. You should see a |
Ok so on my case I use a code-marketplace in my kubernetes cluster on which I have my code-servers. I tried to use direct local connection (using svc.cluster.local) but it did not work for browser side obviously... I played a little with the EXTENSIONS_GALLERY environment variable and added an ingress to be able to get access to my store from my browser. It seems that putting serviceUrl on my ingress permits me to correctly get the list of my extensions from my browser. I get error: |
Glad the browser side is working now! But yeah sounds like we need that no_proxy fix for the server side to work. |
Closing for now since it seems like the fix needs to be done upstream. |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.89.1Steps to Reproduce
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}"}
http_proxy="http://corporate-proxy.com"
https_proxy="$http_proxy"
no_proxy=".cluster.local,.cluster.local."
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?
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)
The text was updated successfully, but these errors were encountered: