This project is read-only.

Cannot clone MSBuildExtensionPack repository when behind company proxy

Nov 6, 2012 at 3:23 PM

Hello,

I'm a contributor to the MSBuildExtensionPack repository. I've succesfully used Git TF to clone the complete repository in my home situation using the following command:

git tf clone --verbose https://tfs.codeplex.com:443/tfs/TFS08 $/MSBuildExtensionPack MSBuildExtensionPackGit

When working at my company I have to use a proxy. I have set the HTTP_PROXY environment variable to our proxy address. However, when trying to clone again I now get the following error:

git-tf: Could not find a valid TFS Collection at https://tfs.codeplex.com:443/tfs/TFS08 (The address is correct - I can connect with it using TFS).

Any ideas? I've tried using both the fully qualified url as well as the IP-address for the HTTP_PROXY environment variable, but to no avail.

Keep up the good work with git tf!

Nov 6, 2012 at 3:28 PM

Do you need to authenticate to your proxy?

Anything suspicious in yours logs?  (HTTP return code, etc)?  They're in %LOCALAPPDATA%\Microsoft\Team Foundation\4.0\Logs\git-tf-*...?

Nov 6, 2012 at 4:34 PM
Edited Nov 6, 2012 at 4:35 PM

Ah,

Didn't realize that I could check the logs. Will do that tomorrow morning and see if that gives me more information.

And no, no authentication necessary for the proxy.

Nov 7, 2012 at 8:15 AM
ethomson wrote:

Do you need to authenticate to your proxy?

Anything suspicious in yours logs?  (HTTP return code, etc)?  They're in %LOCALAPPDATA%\Microsoft\Team Foundation\4.0\Logs\git-tf-*...?

I get a HTTP 405 return code:

com.microsoft.tfs.core.exceptions.TECoreException: The SOAP endpoint https://tfs.codeplex.com/tfs/TFS08/Services/v1.0/Registration.asmx could not be contacted. HTTP status: 405

The full log with full stacktrace can be found over here.

This entire log was created when trying the command:

git tf clone --verbose https://tfs.codeplex.com:443/tfs/TFS08 $/MSBuildExtensionPack MSBuildExtensionPackGit

Nov 7, 2012 at 9:10 AM

Hmmm. It is definitely something with the proxy that is causing problems. Whenever I leave the HTTP_PROXY environment variable set on http://proxy.dev.ict.nl, I now also get a HTTP 405 error when trying to browse NuGet packages in Visual Studio.

Disabling the environment variable lets NuGet and Visual Studio play nice again. (Still, that doesn't help me with git tf)