Curl: (7) Failed to connect to api.github.com port 443: Connection refused

I’m use pygithub operate github api.

github_obj = Github(GITHUB_TOKEN)
repo = github_obj.get_repo(GITHUB_REPO)//error:Max retries exceeded with url [Errno 61] Connection refused

then I try with terminate  

➜ ~ curl https://api.github.com
curl: (7) Failed to connect to api.github.com port 443: Connection refused

But browser can  access [https://api.github.com] , and got right response.


I don’t why, wait a moment , I can access it again. 

Sorry~
Do you resolved this issue?

brew update

It’s answer.

:wave: @tomgarden hey there! Since you posted this, are you still experiencing the same issue?