1

I'm working on Android Studio, I use Git VisualStudio.com. I sent my work normally until this morning:

Push failed. fatal: unable to access 'https://xyz.visualstudio.com/DefaultCollection/_git/MyProject/': Failed to connect to xyz.visualstudio.com:443

I am behind a proxy and everything is ok on my Windows 8 and Android Studio settings... Whereas... Yesterday, at the same place with the same settings, pushes and pulls worked correctly.

When I try to reach this URL (https://xyz.visualstudio.com/DefaultCollection/_git/MyProject/) with my browser, all it is ok.

Andres Talavera
  • 2,100
  • 2
  • 17
  • 29
  • Please try to make "titles" of your questions more meaningful. Try briefly describing your problem. This will surely attract more people to your question than plain "git fatal error" title that could be anything. I've edited your post with an example of a better title - but please, read it and feel free to correct the title once again if you don't its current shape. – quetzalcoatl Jul 21 '14 at 11:27
  • my question is not about the proxy configuration. Everything worked with the same configuration at the same place yesterday. – Andres Talavera Jul 21 '14 at 13:21
  • Sorry, I took such impression from your description. if so, then it's good you changed the title. Btw. Yesterday is not today. Today it does not work anymore. Something has changed. If you don't know what could have changed - methodically check every option. It isn't that impossible for some 3rd party software to change your network or porxy settings. But of course, it doesn't have to be it. You are on the spot, we only see what you told us.. You must diagnose what's the problem. You might try Wireshark or TcpMon to see where the Git actually tries connecting to. It'll probably show something. – quetzalcoatl Jul 21 '14 at 14:31
  • Sure ! Yesterday is not today... I do not know what could be changed. Thanks for the tip about Wireshark. Result : Android Studio tries 3 times to push and fails (but I don't know why...) – Andres Talavera Jul 21 '14 at 15:27
  • I found! This is the new proxy configuration of my workplace... – Andres Talavera Jul 21 '14 at 17:12

1 Answers1

1

do I have to configure proxy settings?

Yes, you can make sure, before launching your Visual Studio, that HTTP_PROXY and HTTPS_PROXY environment variables are properly set.
As in "How to know export proxy working or Not".

you see those same variables mentioned in "Set Environment Variables (Team Explorer Everywhere)" for Visual Studio 2013.


The OP Andrés Talavera confirms in the comments being a proxy-related issue:

This is the new proxy configuration of my workplace...

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 1
    Visual Studio reads your system proxy settings and does not respect `HTTP_PROXY` or `HTTPS_PROXY`. This question is, I think, about either Git for Windows or Android Studio with a visualstudio.com remote. – Edward Thomson Jul 21 '14 at 12:57
  • I use Android Studio as IDE for an Android project. I configured my proxy and gradle proxy settings correctly. – Andres Talavera Jul 21 '14 at 13:02
  • @AndrésTalavera maybe http://stackoverflow.com/a/18356572/6309 could help? (local git config for http proxy) – VonC Jul 21 '14 at 13:07
  • Nope, I do not think it's proxy settings... Yesterday, at the same place with the same parameters, pushes and pulls worked correctly. – Andres Talavera Jul 21 '14 at 13:17
  • @AndrésTalavera Great! I have included your conclusion in the answer for more visibility. – VonC Jul 21 '14 at 17:19