You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for Internet connection through a proxy server #2054
Note from GitHub Desktop team for people who arrive at this issue:
Support for automatic proxy configuration is being worked on in #2789 and should be released in March 2020.
Original issue content:
Description
If a proxy server is used to connect to the internet, then GitHub Desktop is not able to establish the relevant connection. As a result the connection times out. It is typical for corporate networks to deploy a proxy server for routing the internet traffic. An option to configure the internet configuration should be provided or alternatively the system default should be used.
Version
GitHub Desktop version: 0.6.1 OS version: Microsoft Windows [Version 6.3.9600]
Steps to Reproduce
Launch GitHub in a corporate network where proxy server are used to connect to the internet.
The connection will timeout.
@shiftkey AFAIK it's not a system wide configuration, so far each tool needs to be configured separately.
For the browser it's done through Internet Options.
For Git, it's done through command line using
I'm experimenting the same issue. I'm in a corporate network behind a proxy and I can't even login with my github account int Github desktop. As @RishiTheivendran said, in git, there is git config --global http.proxy http://proxyuser:[email protected]:8080
You can find my log attached. -1498070402019.log.txt
EDIT: @shiftkey
setting both HTTP_PROXY and HTTPS_PROXY environment variables doesn't fix it.
I've set all possible env variables (both casings) and git config, same as alete89.
Always times out, can't login, can't clone, can't do anything.
Sample log of error (edited out repo/user and proxy ip):
2017-06-22T12:27:42.581Z - error: [ui] fetchRepository: not found for '' and '(USER)/(REPO)'
L: request to https://api.github.com/repos/(USER)/(REPO) failed, reason: connect ETIMEDOUT (PROXY_IP):443
at ClientRequest. (/webpack:/app/~/node-fetch/index.js:133:1)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at emitErrorNT (net.js:1281:8)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
We made some pretty big changes to how API requests are done in 0.6.2, such that it should pick up your system level network settings. Give it another shot after updating and let us know how it goes!
Why can't we specify INSIDE github desktop the proxy and authentication methods/credential ?
This is such a basic feature so that we can actually use this app in corporate environment...
And as windows doesn't manage properly systemwide authenticated proxies, each app needs to be able to do so...
I used this
git config --global http.proxy http://:@10.31.31.10:3128
and placed my credentials in <> but it didn't work
Activity
shiftkey commentedon Jun 19, 2017
Looks similar to #1998 but it looks like it also affects the Squirrel updater and Git operations.
@RishiTheivendran any additional details around how you configure your machine to connect to the proxy server would be helpful, e.g:
HTTP_PROXYandHTTPS_PROXYenvironment variables?inuik commentedon Jun 19, 2017
@shiftkey AFAIK it's not a system wide configuration, so far each tool needs to be configured separately.
For the browser it's done through Internet Options.
For Git, it's done through command line using
I was expecting GitHub Desktop to inherit the configuration from Git but it didn't.
alete89 commentedon Jun 21, 2017
I'm experimenting the same issue. I'm in a corporate network behind a proxy and I can't even login with my github account int Github desktop. As @RishiTheivendran said, in git, there is
git config --global http.proxy http://proxyuser:[email protected]:8080You can find my log attached.
-1498070402019.log.txt
EDIT: @shiftkey
setting both HTTP_PROXY and HTTPS_PROXY environment variables doesn't fix it.
amis92 commentedon Jun 22, 2017
I'm having similar problem on macOS Sierra 10.12.5 with GitHub Desktop 0.6.1
I'm behind corporate proxy (no https, no user/password, simply http://proxy.someserver.com:8080 for both http and https)
I've set all possible env variables (both casings) and git config, same as alete89.
Always times out, can't login, can't clone, can't do anything.
Sample log of error (edited out repo/user and proxy ip):
colemanrob commentedon Jun 23, 2017
Same issue. Windows 10 - corp proxy set by sys admin. Previous github client worked by adding necessary lines to the .gitconfig in %USERPROFILE%
[http]
proxy = http://:
[https]
proxy = https://:
git CLI works fine with gitconfig options.
joshaber commentedon Jun 29, 2017
We made some pretty big changes to how API requests are done in 0.6.2, such that it should pick up your system level network settings. Give it another shot after updating and let us know how it goes!
flowerbot commentedon Jun 30, 2017
inuik commentedon Jul 3, 2017
Works very well with 0.6.2, thanks for the info.
abel406 commentedon Nov 22, 2017
Having issues with proxy authentication.
Vlurk commentedon Mar 14, 2018
Indeed, I am able to confirm that GitHub Desktop does not support NTLM or kerberos (NEGOTITATE) proxy authentication.
unreal-kz commentedon Mar 29, 2018
Hi,
How to clear the Proxy Settings? Thank you.
makerspaze commentedon Jun 12, 2018
tiliarou commentedon Jun 13, 2018
Why can't we specify INSIDE github desktop the proxy and authentication methods/credential ?
This is such a basic feature so that we can actually use this app in corporate environment...
And as windows doesn't manage properly systemwide authenticated proxies, each app needs to be able to do so...
saiponnada commentedon Jan 11, 2019
I have edited .gitconfig file as shown in below link. It worked.
https://stackoverflow.com/questions/38615168/how-can-i-configure-github-desktop-windows-to-work-with-a-proxy?rq=1
deepakreddy63 commentedon Jan 16, 2020
In case you have @ in your password you can substitute it with %40 as it is corresponding URL code.
Example:
git config --global http.proxy http://proxyuser:pwd@[email protected]:8080
will become
git config --global http.proxy http://proxyuser:pwd%[email protected]:8080
themagicalmammal commentedon Feb 6, 2020
a proxy server settings like chrome should be added because it works in my house but fails to work in my office which has a different proxy settings
themagicalmammal commentedon Feb 6, 2020
I used this
git config --global http.proxy http://:@10.31.31.10:3128
and placed my credentials in <> but it didn't work
billygriffin commentedon Mar 24, 2020
Just wanted to note for people who arrive here here that automated Git proxy configuration is being worked on in #2789 and should be released soon. ❤️