I keep getting this error occasionally. It is really annoying because sometimes it fixes itself, but mostly I just have to close VS and reopen and then it will work again for a while.
It happens when I try to pull from a branch (or any other git network interaction).
Error encountered while fetching: An error occurred while sending the request.
Inner Exception:
The remote name could not be resolved: 'github.com'
- Sometimes it fixes itself after an unknown period of time.
- Sometimes I do nothing during that period of time.
- Sometimes I click around and check out other branches and do pull requests and then it works again.
- Mostly I have to restart VS to get it working again.
Has anyone else had this issue? How did you resolve?
I am also using two factor auth. if that is the issue. (Doesn't appear to be the issue)
I also receive this error when starting up VS sometimes:
We were unable to automatically populate your Visual Studio Team Services accounts.
The following error was encountered: TF400813:
Resource not available for anonymous access. Client authentication required.
So perhaps it is that the github.com authentication is being lost at some point during interactions and restarting VS fixes it.
Another clue is that when github.com can't be reached, it can't be browsed to in the browser in Visual Studio. It can be browsed to fine in Chrome (or FireFox or IE). Visual Studio also seems to lose connection to nuget.org occasionally as well, the effect appears to be the same.
Possible related issue: Visual Studio/C#: Nuget Unable to connect to remote server
UPDATE: This happens on two different ISPs and one of them was not on the corporate firewall (this rules out network issues). When the issue happens it actually shuts down ALL network communication from within Visual Studio, so this isn't just a github.com issue. I have a ticket open with Microsoft, hopefully we will get it resolved and I can post the answer for everyone.
hosts
entry now to see if that helps. – Doubleripperhosts
entry and I am still receiving this error. Going to open a ticket with MS next. – DoubleripperWe were unable to automatically populate your Visual Studio Team Services accounts.
The following error was encountered: TF400813: Resource not available for anonymous access. Client authentication required.
error when I start up. So perhaps the github.com auth is getting broken. – Doubleripper