Skip to content

Support for Internet connection through a proxy server #2054

Closed

Description

@inuik

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.

Logs

2017-06-19.desktop.production.log.txt

Activity

  1. added
    bug
    on Jun 19, 2017
  2. shiftkey commented on Jun 19, 2017

    @shiftkey
    Member

    Looks similar to #1998 but it looks like it also affects the Squirrel updater and Git operations.

    Launch GitHub in a corporate network where proxy server are used to connect to the internet.
    The connection will timeout.

    @RishiTheivendran any additional details around how you configure your machine to connect to the proxy server would be helpful, e.g:

    • how do you configure your proxy settings in Windows? Through Internet Options? Or through a different tool?
    • do you set HTTP_PROXY and HTTPS_PROXY environment variables?
  3. added
    more-info-needed
    on Jun 19, 2017
  4. inuik commented on Jun 19, 2017

    @inuik
    Author

    @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

    git config --global http.proxy http://proxyuser:[email protected]:8080

    I was expecting GitHub Desktop to inherit the configuration from Git but it didn't.

  5. alete89 commented on Jun 21, 2017

    @alete89

    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.

  6. amis92 commented on Jun 22, 2017

    @amis92

    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):

    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)

  7. colemanrob commented on Jun 23, 2017

    @colemanrob

    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.

  8. joshaber commented on Jun 29, 2017

    @joshaber
    Contributor

    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!

  9. flowerbot commented on Jun 30, 2017

    @flowerbot
  10. inuik commented on Jul 3, 2017

    @inuik
    Author

    Works very well with 0.6.2, thanks for the info.

  11. abel406 commented on Nov 22, 2017

    @abel406

    Having issues with proxy authentication.

  12. Vlurk commented on Mar 14, 2018

    @Vlurk

    Indeed, I am able to confirm that GitHub Desktop does not support NTLM or kerberos (NEGOTITATE) proxy authentication.

  13. unreal-kz commented on Mar 29, 2018

    @unreal-kz

    Hi,

    How to clear the Proxy Settings? Thank you.

  14. makerspaze commented on Jun 12, 2018

    @makerspaze

    git

  15. tiliarou commented on Jun 13, 2018

    @tiliarou

    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...

  16. locked as resolved and limited conversation to collaborators on Aug 12, 2018
  17. unlocked this conversation on Sep 27, 2018
  18. deepakreddy63 commented on Jan 16, 2020

    @deepakreddy63
  19. themagicalmammal commented on Feb 6, 2020

    @themagicalmammal

    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

  20. themagicalmammal commented on Feb 6, 2020

    @themagicalmammal

    Capture

    I used this
    git config --global http.proxy http://:@10.31.31.10:3128
    and placed my credentials in <> but it didn't work

  21. billygriffin commented on Mar 24, 2020

    @billygriffin
    Contributor

    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. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmore-info-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions