Skip to content
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

"Azure: Open Bash in Cloud Shell" seems to ignore proxy settings #93

Closed
aglees opened this issue Sep 25, 2018 · 8 comments
Closed

"Azure: Open Bash in Cloud Shell" seems to ignore proxy settings #93

aglees opened this issue Sep 25, 2018 · 8 comments
Assignees

Comments

@aglees
Copy link

aglees commented Sep 25, 2018

I'm able to login to Azure just fine from VSC, but am struggling with the "Azure: Open Bash in Cloud Shell". Getting the following in the terminal:

Requesting a Cloud Shell...
Connecting terminal...
Socket error: {"errno":"ETIMEDOUT","code":"ETIMEDOUT","syscall":"connect","address":"40.118.150.251","port":443}
Socket closed

Also seeing the following in netstat whilst VSC attempts to connect. I would expect that the connection would be to the defined proxy:

TCP    xxx.xxx.xxx.xxx:64518   40.118.150.251:https   SYN_SENT
TCP    xxx.xxx.xxx.xxx:64526   65.55.44.109:https     SYN_SENT

Could this be an issue of VSC ignoring the local proxy settings?

@chrmarti
Copy link
Contributor

Do you have the HTTP_PROXY and HTTPS_PROXY environment variables set?

@aglees
Copy link
Author

aglees commented Sep 25, 2018

yes, both those environment variables are set.

@ejazr83
Copy link

ejazr83 commented Jun 14, 2019

I seem to be having the same issue as well. I have the HTTP and HTTPS proxy variables set and am behind a corporate proxy. Is there any other setting that I should look into to allow this to work?

Connecting terminal...
Socket error: {"errno":"ETIMEDOUT","code":"ETIMEDOUT","syscall":"connect","address":"23.101.22.128","port":443}
Socket closed

@chrmarti
Copy link
Contributor

That should do it. Make sure the environment variables are set before you start VS Code and check they are there in the integrated terminal.

@ejazr83
Copy link

ejazr83 commented Jun 16, 2019

Just clarify, these are the http.proxy and https.proxy variables in the settings.json file right?

I have these configured and I can for example sign-in to Azure and access my subscriptions. Its only the bash shell part that doesn't seem to work with error above

@chrmarti
Copy link
Contributor

HTTP_PROXY and HTTPS_PROXY are environment variables, not settings.

@ejazr83
Copy link

ejazr83 commented Jun 17, 2019

Thanks @chrmarti that worked!

For others who are trying to get this working

run this to set the "Environment variables" on your system

setx HTTP_PROXY <proxy>
setx HTTPS_PROX <proxy>

@shannuvijaya
Copy link

I have setup the variable in my command Line,Sill i am getting the issue. Any Thoughts please ?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants