-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Error: Failed to establish a socket connection to proxies #11911
Comments
@varunmankal thank you for reporting the issue, do you mind providing additional details that can help resolve the problem, it is not actionable at the moment.
|
This could be related to my work on proxy support in Theia (see #11043). While it performs some minor changes in the plugin host area, they shouldn't lead to regressions. |
@vince-fugnitto sorry, I cannot share the plugin. But here is the error when I try to debug. root ERROR [hosted-plugin: 6553] ApplicationInsights:CorrelationIdManager [ |
Alright, it does seem to be a regression due to my change. My changes introduced the
|
@msujew |
@msujew any thoughts on this ? |
@varunmankal Not really. It'd be great if you could provide us with a reproducible example for this, as I believe no one else has encountered this issue yet. |
I see. Let me try to get it. |
@msujew quick question. Any thoughts on the value for http proxy support setting in User settings ? Shouldn't that be off by default ? If I set it to off, I am seeing no error. |
@msujew I work for Oracle cloud Infrastructure(OCI). OCI has code editor which is based on theia. As of now, code editor does not support installing external plugins by users and sample extension will require making API calls to OCI services. |
That would result in every request from an extension failing in case the user is sitting behind a proxy. Doesn't sound like a sensible default. If you want to set the default to off you can do so in the preferences of your apps frontend config. Another interesting thing to know would be if your extension is able to successfully perform the request if installed in vscode, as they are using the exact same package to rewrite externally bound requests. To reproduce the issue, we don't need/want the full extension, just the code that actually fires the http request. That should be enough (in theory) to reproduce it. |
regarding the proxy support setting, makes sense what you have said. In our case, we are not sitting behind the proxy. Even then, we are getting the error “Failed to establish a socket connection to proxies”. However, when we turn it off, we don’t see any error. We did tried in VSCode, it worked well. |
@varunmankal the default preference for 'http.proxySupport': {
type: 'string',
enum: ['off', 'on', 'fallback', 'override'],
enumDescriptions: [
localize('proxySupportOff', "Disable proxy support for extensions."),
localize('proxySupportOn', "Enable proxy support for extensions."),
localize('proxySupportFallback', "Enable proxy support for extensions, fall back to request options, when no proxy found."),
localize('proxySupportOverride', "Enable proxy support for extensions, override request options."),
],
default: 'override',
description: localize('proxySupport', "Use the proxy support for extensions."),
restricted: true
}, |
@msujew I have tried using extensions in VS Code. They are working fine. One thing to mention is that we have overridden some of the theia functionality. I have set http_proxy and https_proxy environment variables and tried extensions in theia blueprint with the flag |
Alright, that is good to know 👍
so are you sitting behind a http proxy? You might need to set the proxy url in the Anyway, it would be good to have a reproducible example for this. Like I said, no one else has encountered this issue yet. |
I have tried setting proxy url in theia blueprint and set the http proxy support to "off". It still works fine.
I am not sure if this what you are looking for. I will try my best to provide the code snippets though:
The listRegionSubscriptions call is failing with the above mentioned error. That is basically trying to call the API mentioned here: https://docs.oracle.com/en-us/iaas/api/#/en/identity/20160918/RegionSubscription/ListRegionSubscriptions |
I've taken a closer look at the OCI TypeScript package, and it looks like they're using I've noticed from your initial error description that the |
We are also experiencing the same issue in Keil Studio Cloud after upgrading to 1.27. Requests to our build service fail with the same error message. As far as I know we are not running behind a proxy. Turning the |
@erezmus Can you try the test extension that I've posted above? Does it work as expected? |
@msujew will have a go |
We are experiencing the same problem in Theia 1.34.0 (the version soon to become the community release I think). Installing the Zowe Explorer extension and trying to connect to a mainframe results in the same error message, but setting @msujew I've tried the test extension, here are the results with different values for
|
@t1m0thyj Thanks for confirming the issue! I can actually reproduce this as well now (on every environment). I'll investigate this further. |
@msujew Thanks for opening the PR ❤️ Any idea when the fix will be released, and whether it will make it into the 1.34.x community release? 🙏 In the meantime, my team will document the workaround of setting |
@t1m0thyj I don't know whether the release team is planning to perform another community release update. However, the PR has now been merged and will be included in this month's release (1.36.0 on Thursday) which will become the community release 2023-5 at the end of April. |
Bug Description:
we have some custom plugins deployed in theia 1.27.0. When we launch those plugins, it returns "Failed to establish a socket connection to proxies" error.
However, it was working fine with theia 1.19.0.
The text was updated successfully, but these errors were encountered: