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

Failed to establish a socket connection to proxies #4624

Closed
escopecz opened this issue Mar 14, 2023 · 14 comments
Closed

Failed to establish a socket connection to proxies #4624

escopecz opened this issue Mar 14, 2023 · 14 comments
Labels
info-needed Issue requires more information from poster

Comments

@escopecz
Copy link

  • Extension version: v0.60.0
  • VSCode Version:
Version: 1.76.0
Commit: 92da9481c0904c6adfe372c12da3b7748d74bdcb
Date: 2023-03-01T10:23:45.993Z (1 wk ago)
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Darwin x64 22.3.0
Sandboxed: No
  • OS: MacOS 13.2.1

Steps to Reproduce:

I'm configuring my dev environment directly in a dev container by following this doc but now this extension stopped working and does not load any data in the left toolbar. This is the error message:

Fetching pull requests failed: request to https://api.github.com/repos/mautic/mautic/pulls?per_page=20&page=1 failed, reason: Failed to establish a socket connection to proxies: ["PROXY 127.0.0.1:9000"]

Is there any suggestion anyone could give me to try to fix this issue?

This might be related to #701 but I'm not sure and if it is then it looks like I'm screwed like the Chinese nation.

@alexr00
Copy link
Member

alexr00 commented Mar 15, 2023

@escopecz are you using the http.proxy setting?

@alexr00 alexr00 added the info-needed Issue requires more information from poster label Mar 15, 2023
@escopecz
Copy link
Author

It is empty at the moment. Shall I try putting some value in it?

@alexr00
Copy link
Member

alexr00 commented Mar 15, 2023

Using http.proxy is a known issue in #701, so I wouldn't expect changing it to help.

Did you start from a template? If I create a dev container from https://github.com/microsoft/vscode-remote-try-node then the extension works fine.

@escopecz
Copy link
Author

I did not start from a template. We had an existing docker-compose setup but it started to be painfully slow after upgrading to MacOs 13. When I ditch all the volumes shared with MacOs and attach VS Code to the container then it's very fast.

I don't see anything specific in https://github.com/microsoft/vscode-remote-try-node that would enable this extension's socket connection. Am I missing something?

@alexr00
Copy link
Member

alexr00 commented Apr 14, 2023

@escopecz is this in a public repo? I'd like to try out the exact scenario.

@escopecz
Copy link
Author

The project itself is a public repo, but the dev docker is closed source as it contains some proprietary code.

@alexr00
Copy link
Member

alexr00 commented Apr 14, 2023

Hmm. Which part of https://code.visualstudio.com/docs/devcontainers/containers were you following?

@escopecz
Copy link
Author

As my team is using docker compose as the setup is not trivial I followed https://code.visualstudio.com/remote/advancedcontainers/connect-multiple-containers

Most of my team is using other editor than VS code for development so I made only minimal change to the dev docker setup and the rest is configured via local config overrides. I know I'm not very helpful debugging this, but not sure how to debug this further.

@thanos-kataras
Copy link

I have managed to override this by going to the user settings, and changing the application proxy extension settings to off. The initial setting was on override which is manual proxy configuration. Setting it on will use the hosting system settings and off will not use a proxy at all.

image

@alexr00 alexr00 closed this as completed Dec 7, 2023
@alexr00
Copy link
Member

alexr00 commented Dec 7, 2023

Thanks for posting your solution!

@bertom
Copy link

bertom commented Mar 25, 2024

Turning off proxy support for extensions worked for me too. Thanks!

@Gossity
Copy link

Gossity commented May 17, 2024

高低得给您鞠一躬!

@tenadolanter
Copy link

I am using Mac, I changed the network settings, and it works fine

System Preferences > Network > Advanced > Proxies

Uncheck all and save

@22dimensions
Copy link

Thanks for posting your solution, I am very grateful!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

7 participants