Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Failed to connect to github.com port 443: connection refused #10037

Closed
kunalgithub opened this issue Oct 20, 2015 · 30 comments
Closed

Failed to connect to github.com port 443: connection refused #10037

kunalgithub opened this issue Oct 20, 2015 · 30 comments

Comments

@kunalgithub
Copy link

Error fatal : unable to access 'https://github.com/joshuafcole/async-node-events.git' : Failed to connect to gitHub.com port 443 : Connection Refused.

@kenany
Copy link
Contributor

kenany commented Oct 20, 2015

@kunalgithub Seems like an issue with your internet connection. Are you behind a proxy or firewall that might be disrupting requests to github.com?

@kunalgithub
Copy link
Author

yes - i am behind proxy

@kenany
Copy link
Contributor

kenany commented Oct 20, 2015

@kunalgithub Be sure to configure npm to use your proxy then. Here are the relevant configuration variables:

I think you might have to configure git to use the proxy as well.

@kunalgithub
Copy link
Author

these all are configured properly .. fine and dandy except -- cafile ? -
GIT config
http.sslcainfo=C:/program files/git/mingw64/ssl/certs/ca-bundle.crt

@othiym23 othiym23 changed the title NPM install error : Failed to connect to github.com port 443: connection refused Oct 21, 2015
@othiym23
Copy link
Contributor

Is the proxy configured for npm, or just for git?

@SauravDas90
Copy link

SauravDas90 commented Jul 21, 2016

I am using it on my home computer with no proxy configured, what to do?
I am using ubuntu 14.04 and using IntelliJ/Android studio

@kenany
Copy link
Contributor

kenany commented Jul 21, 2016

@SauravDas90 Maybe you have a firewall?

@ubuntuvim
Copy link

ubuntuvim commented Aug 4, 2016

What a strange question, I put my /etc/hosts in github.com commented out, no problem!!!!
comment github.com

@kenany
Copy link
Contributor

kenany commented Aug 11, 2016

@kunalgithub Is this still an issue for you?

@kenany
Copy link
Contributor

kenany commented Aug 18, 2016

Closing as abandoned.

@kenany kenany closed this as completed Aug 18, 2016
@sabarivasagan
Copy link

i had this same error

@ptduc
Copy link

ptduc commented Oct 5, 2016

I had same this, my network not behind proxy.

@pawanline
Copy link

i have same error . please help me

@BhuvaneshwaranK
Copy link

I have same error. I configured proxy settings also. still it's coming for me.

@legodude17
Copy link
Contributor

Try the solution that @ubuntuvim proposed.

@alvirtuoso
Copy link

Same problem here

@legodude17
Copy link
Contributor

Did you try the solution @ubuntuvim mentioned?

@ssaguiar
Copy link

I was using iTerm and got the same error.
Switched to normal Terminal and it worked.

@LiYaHX
Copy link

LiYaHX commented Jul 4, 2017

@ubuntuvim Thank you, it works for me.

@ubuntuvim
Copy link

@LiYaHX You are welcome......

@meiryanne
Copy link

I use windows and i have same error. Someone help?

@legodude17
Copy link
Contributor

Does the solution from @ubuntuvim work for you? What is npm -v and node -v?

@kunalgithub
Copy link
Author

kunalgithub commented Sep 12, 2017

I am back - This issue persists. Here is log
npm -v ==> 3.3.8
node -v ==> 6.11.3
BEHIND PROXY - PROXY is set in NPMRC and GIT
-------------LOGS
npm WARN addRemoteGit cmd: 'git -c core.longpaths=true config --get remote.origin.url' }
npm info resetRemote resetting C:\Users\ME\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-joshuafcole-async-node-events-git-d32411f1f4-c1010c71660940b2a2eaab4c0f326afb for git+https
//github.com/joshuafcole/async-node-events.git#d32411f1f4
npm verb gentlyRm don't care about contents; nuking C:\Users\ME\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-joshuafcole-async-node-events-git-d32411f1f4-c1010c71660940b2a2eaab4c0
326afb
npm info git [ 'clone',
npm info git '--template=C:\Users\ME\AppData\Roaming\npm-cache\_git-remotes\_templates',
npm info git '--mirror',
npm info git 'https://github.com/joshuafcole/async-node-events.git',
npm info git 'C:\Users\ME\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-joshuafcole-async-node-events-git-d32411f1f4-c1010c71660940b2a2eaab4c0f326afb' ]
npm ERR! git clone --template=C:\Users\ME\AppData\Roaming\npm-cache_git-remotes_templates --mirror https://github.com/joshuafcole/async-node-events.git C:\Users\ME\AppData\Roaming\npm-cac
e_git-remotes\git-https-github-com-joshuafcole-async-node-events-git-d32411f1f4-c1010c71660940b2a2eaab4c0f326afb: Cloning into bare repository 'C:\Users\ME\AppData\Roaming\npm-cache_git-remote
\git-https-github-com-joshuafcole-async-node-events-git-d32411f1f4-c1010c71660940b2a2eaab4c0f326afb'...
npm ERR! git clone --template=C:\Users\ME\AppData\Roaming\npm-cache_git-remotes_templates --mirror https://github.com/joshuafcole/async-node-events.git C:\Users\ME\AppData\Roaming\npm-cac
e_git-remotes\git-https-github-com-joshuafcole-async-node-events-git-d32411f1f4-c1010c71660940b2a2eaab4c0f326afb: fatal: unable to access 'https://github.com/joshuafcole/async-node-events.git/': Fai
ed to connect to github.com port 443: Connection refused
npm verb stack Error: Command failed: git -c core.longpaths=true clone --template=C:\Users\ME\AppData\Roaming\npm-cache_git-remotes_templates --mirror https://github.com/joshuafcole/async-node
events.git C:\Users\ME\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-joshuafcole-async-node-events-git-d32411f1f4-c1010c71660940b2a2eaab4c0f326afb
npm verb stack Cloning into bare repository 'C:\Users\ME\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-joshuafcole-async-node-events-git-d32411f1f4-c1010c71660940b2a2eaab4c0f326afb
...
npm verb stack fatal: unable to access 'https://github.com/joshuafcole/async-node-events.git/': Failed to connect to github.com port 443: Connection refused
npm verb stack
npm verb stack at ChildProcess.exithandler (child_process.js:198:12)
npm verb stack at emitTwo (events.js:106:13)
npm verb stack at ChildProcess.emit (events.js:191:7)
npm verb stack at maybeClose (internal/child_process.js:920:16)
npm verb stack at Socket. (internal/child_process.js:351:11)
npm verb stack at emitOne (events.js:96:13)
npm verb stack at Socket.emit (events.js:188:7)
npm verb stack at Pipe._handle.close [as _onclose] (net.js:497:12)
npm verb cwd C:\Bla\app
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\ME\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "--verbose" "install"
npm ERR! node v6.11.3
npm ERR! npm v3.3.8
npm ERR! code 128

npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\ME\AppData\Roaming\npm-cache_git-remotes_templates --mirror https://github.com/joshuafcole/async-node-events.git C
\Users\ME\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-joshuafcole-async-node-events-git-d32411f1f4-c1010c71660940b2a2eaab4c0f326afb
npm ERR! Cloning into bare repository 'C:\Users\ME\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-joshuafcole-async-node-events-git-d32411f1f4-c1010c71660940b2a2eaab4c0f326afb'...
npm ERR! fatal: unable to access 'https://github.com/joshuafcole/async-node-events.git/': Failed to connect to github.com port 443: Connection refused
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm verb exit [ 1, true ]

npm ERR! Please include the following file with any support request:
npm ERR! C:\Bla\app\npm-debug.log

@prashant569
Copy link

failed to connect to github
unknown host: api.github.com?? this error is coming in my android studio

@prashant569
Copy link

how to resolve??

@ZhengHei
Copy link

Same problem here

@Thrianadh
Copy link

Use a proxy to connect to the internet.
Use the Package httr
library("httr")
set_config(use_proxy("abcd.com",port = 8080, username = "*******", password="********"))
its worked for me

@finagep
Copy link

finagep commented Apr 2, 2018

{"failed":"cURL error 7: Failed to connect to api.github.com port 443: Connection timed out"}

i have this problem in my WordPress website http://www.technicalstock.in how to remove this error

@eugkhp
Copy link

eugkhp commented Jun 18, 2018

Well, i fixed that problem by using vpn. I guess my provider blocked some server that sdkman uses(i live in Russia).

@finagep
Copy link

finagep commented Jul 12, 2018

The solution to this error
{"failed":"cURL error 7: Failed to connect to api.github.com port 443: Connection timed out"} my website http://www.technicalstock.in I was a problem for most of the time

capture2
capture3

This error showing for some security virus in our home directory ( Step 1)

capture

  1. if you have Hostgator hosting account first scan virus for home directory and after scan repair those files

capture 7
capture 6

  1. step go to Port 80 option in Hostgator penal unblock port

problam solve

capture 8

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

No branches or pull requests