Search code examples
shellgithub

GitHub error: "Failed to connect to 443 port"


I am trying to build App Inventor locally on Windows 7 using the following document: How to build App Inventor from the MIT sources

I've downloaded all the software listed in section 3 and proceeded building App Inventor by cloning a Git repository by running the following Git command from a shell:

git clone https://github.com/mit-cml/appinventor-sources.git

I keep getting the following error:

failed to connect to github 443 error

I've tried doing a Google search and found this: GitHub: "failed to connect to github 443 windows/ Failed to connect to gitHub - No Error"

I'm not at all experienced in this field, so I do not understand any of the solutions mentioned. How can I go through the best solution step by step?

I'm working in a company, so I can't get the proxy like they mentioned or the firewall might be blocking it.


Solution

  • If you are behind the corporate firewall and if all your requests goes through the proxy server then you must set the Git proxy first before running any get commands like pull, fetch and push commands.

    To set the Git proxy for HTTP and HTTPS use the following Git commands in the git bash shell

    git config --global http.proxy http://username:[email protected]:8080
    git config --global https.proxy http://username:[email protected]:8080
    
    //Replace username with your proxy username
    //Replace password with your proxy password
    //Replace proxy.server.com with the proxy domain URL.
    //Replace 8080 with the proxy port no configured on the proxy server.
    

    Check How to configure Git proxy and How to unset the Git Proxy for more details