GithubHelp home page GithubHelp logo

Comments (4)

spraints avatar spraints commented on July 26, 2024

if you run quick-clone with a --debug argument, you should see the
full exception stack trace. could you post it, along with the last
couple lines before it?

On Fri, Apr 22, 2011 at 9:10 AM, dontjee
[email protected]
wrote:

When running a quick-clone operation I see the ''Initialized empty Git repository " message, then about 10 different 'xxxx objects created...' messages.

The next message I see is an error, 'The server returned content type text/html, which is not supported.', and the clone operation terminates.

Is this something wrong with my repository or with git-tfs?

Reply to this email directly or view it on GitHub:
https://github.com/spraints/git-tfs/issues/37

from git-tfs.

dontjee avatar dontjee commented on July 26, 2024

Here's the stacktrace

U fe4e83c7c51350a8c9f8bb555018861b4e95c505 = _Branches/Research/Database/DbProj/Schema Objects/Schemas/dbp/Programmability/Stored Procedures/spDelete.proc.sql
git command time: [00:10:26.6676605] update-index -z --index-info
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.TeamFoundation.VersionControl.Client.Versi onControlException: The server returned content type text/html, which is not supported.
   at Microsoft.TeamFoundation.VersionControl.Client.Client.EndDownloadFile(IAsyncResult asyncResult, Stream& downloadStream)
   at Microsoft.TeamFoundation.VersionControl.Client.Client.EndDownloadFile(IAsyncResult asyncResult)
   at Microsoft.TeamFoundation.VersionControl.Client.Client.DownloadFile(String downloadUrl, String localFileName)
   at Microsoft.TeamFoundation.VersionControl.Client.Item.DownloadFile(String localFileName)
   at Sep.Git.Tfs.VsCommon.WrapperForItem.DownloadFile(String file)
   at Sep.Git.Tfs.Core.TfsChangeset.Add(IItem item, String pathInGitRepo, GitIndexInfo index) in d:\dev\github\git-tfs\GitTfs\Core\TfsChangeset.cs:line 169
   at Sep.Git.Tfs.Core.TfsChangeset.CopyTree(GitIndexInfo index) in d:\dev\github\git-tfs\GitTfs\Core\TfsChangeset.cs:line 150
   at Sep.Git.Tfs.Core.GitTfsRemote.<>c__DisplayClassb.<CopyTree>b__9(GitIndexInfo index) in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 254
   at Sep.Git.Tfs.Core.GitIndexInfo.Do(TextWriter stdin, IGitRepository repository, Action`1 action) in d:\dev\github\git-tfs\GitTfs\Core\GitIndexInfo.cs:line 2 1
   at Sep.Git.Tfs.Core.GitIndexInfo.<>c__DisplayClass1.<Do>b__0(TextWriter stdin) in d:\dev\github\git-tfs\GitTfs\Core\GitIndexInfo.cs:line 12
   at Sep.Git.Tfs.Core.GitHelpers.<>c__DisplayClassb.<CommandInputPipe>b__a() in d:\dev\github\git-tfs\GitTfs\Core\GitHelpers.cs:line 160
   at Sep.Git.Tfs.Core.GitHelpers.Time(String[] command, Action action) in d:\dev\github\git-tfs\GitTfs\Core\GitHelpers.cs:line 182
   at Sep.Git.Tfs.Core.GitHelpers.CommandInputPipe(Action`1 action, String[] command) in d:\dev\github\git-tfs\GitTfs\Core\GitHelpers.cs:line 156
   at Sep.Git.Tfs.Core.GitIndexInfo.Do(IGitRepository repository, Action`1 indexAction) in d:\dev\github\git-tfs\GitTfs\Core\GitIndexInfo.cs:line 12
   at Sep.Git.Tfs.Core.GitTfsRemote.<>c__DisplayClassb.<CopyTree>b__8() in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 254
   at Sep.Git.Tfs.Core.GitTfsRemote.<>c__DisplayClass1a.<WithTemporaryIndex>b__19() in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 336
   at Sep.Git.Tfs.Core.GitTfsRemote.WithTemporaryEnvironment(Action action, IDictionary`2 newEnvironment) in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:l ine 346
   at Sep.Git.Tfs.Core.GitTfsRemote.WithTemporaryIndex(Action action) in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 333
   at Sep.Git.Tfs.Core.GitTfsRemote.CopyTree(String lastCommit, ITfsChangeset changeset) in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 253
   at Sep.Git.Tfs.Core.GitTfsRemote.QuickFetch() in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 150
   at Sep.Git.Tfs.Commands.QuickFetch.DoFetch(IGitTfsRemote remote) in d:\dev\github\git-tfs\GitTfs\Commands\QuickFetch.cs:line 20
   at Sep.Git.Tfs.Commands.Fetch.Run(String[] args) in d:\dev\github\git-tfs\GitTfs\Commands\Fetch.cs:line 57
   at Sep.Git.Tfs.Commands.Fetch.Run() in d:\dev\github\git-tfs\GitTfs\Commands\Fetch.cs:line 49
   at Sep.Git.Tfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath, String gitRepositoryPath) in d:\dev\github\git-tfs\GitTfs\Commands\Clone.cs:line 3 9
   at Sep.Git.Tfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath) in d:\dev\github\git-tfs\GitTfs\Commands\Clone.cs:line 32
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAt tributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes , RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisib ilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Sep.Git.Tfs.Util.GitTfsCommandRunner.Run(GitTfsCommand command, IList`1 args) in d:\dev\github\git-tfs\GitTfs\Util\GitTfsCommandRunner.cs:line 36
   at Sep.Git.Tfs.GitTfs.Main(GitTfsCommand command, IList`1 unparsedArgs) in d:\dev\github\git-tfs\GitTfs\GitTfs.cs:line 56
   at Sep.Git.Tfs.GitTfs.Run(IList`1 args) in d:\dev\github\git-tfs\GitTfs\GitTfs.cs:line 39
   at Sep.Git.Tfs.Program.Main(String[] args) in d:\dev\github\git-tfs\GitTfs\Program.cs:line 23
The server returned content type text/html, which is not supported.

from git-tfs.

spraints avatar spraints commented on July 26, 2024

That looks like a TFS error. I'm not sure why git-tfs is seeing it.
But, you might be able to google that exception string "The server
returned content type text/html, which is not supported," and get it
working again. It looks like you might be able to clear your local
TFS cache to solve the
problem
.

What version of VS and TFS are you using?

On Mon, Apr 25, 2011 at 9:42 AM, dontjee
[email protected]
wrote:

Here's the stacktrace

U fe4e83c7c51350a8c9f8bb555018861b4e95c505 = _Branches/Research/Database/DbProj/Schema Objects/Schemas/dbp/Programmability/Stored Procedures/spDelete.proc.sql
git command time: [00:10:26.6676605] update-index -z --index-info
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.TeamFoundation.VersionControl.Client.Versi onControlException: The server returned content type text/html, which is not supported.
  at Microsoft.TeamFoundation.VersionControl.Client.Client.EndDownloadFile(IAsyncResult asyncResult, Stream& downloadStream)
  at Microsoft.TeamFoundation.VersionControl.Client.Client.EndDownloadFile(IAsyncResult asyncResult)
  at Microsoft.TeamFoundation.VersionControl.Client.Client.DownloadFile(String downloadUrl, String localFileName)
  at Microsoft.TeamFoundation.VersionControl.Client.Item.DownloadFile(String localFileName)
  at Sep.Git.Tfs.VsCommon.WrapperForItem.DownloadFile(String file)
  at Sep.Git.Tfs.Core.TfsChangeset.Add(IItem item, String pathInGitRepo, GitIndexInfo index) in d:\dev\github\git-tfs\GitTfs\Core\TfsChangeset.cs:line 169
  at Sep.Git.Tfs.Core.TfsChangeset.CopyTree(GitIndexInfo index) in d:\dev\github\git-tfs\GitTfs\Core\TfsChangeset.cs:line 150
  at Sep.Git.Tfs.Core.GitTfsRemote.<>c__DisplayClassb.<CopyTree>b__9(GitIndexInfo index) in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 254
  at Sep.Git.Tfs.Core.GitIndexInfo.Do(TextWriter stdin, IGitRepository repository, Action`1 action) in d:\dev\github\git-tfs\GitTfs\Core\GitIndexInfo.cs:line 2 1
  at Sep.Git.Tfs.Core.GitIndexInfo.<>c__DisplayClass1.<Do>b__0(TextWriter stdin) in d:\dev\github\git-tfs\GitTfs\Core\GitIndexInfo.cs:line 12
  at Sep.Git.Tfs.Core.GitHelpers.<>c__DisplayClassb.<CommandInputPipe>b__a() in d:\dev\github\git-tfs\GitTfs\Core\GitHelpers.cs:line 160
  at Sep.Git.Tfs.Core.GitHelpers.Time(String[] command, Action action) in d:\dev\github\git-tfs\GitTfs\Core\GitHelpers.cs:line 182
  at Sep.Git.Tfs.Core.GitHelpers.CommandInputPipe(Action`1 action, String[] command) in d:\dev\github\git-tfs\GitTfs\Core\GitHelpers.cs:line 156
  at Sep.Git.Tfs.Core.GitIndexInfo.Do(IGitRepository repository, Action`1 indexAction) in d:\dev\github\git-tfs\GitTfs\Core\GitIndexInfo.cs:line 12
  at Sep.Git.Tfs.Core.GitTfsRemote.<>c__DisplayClassb.<CopyTree>b__8() in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 254
  at Sep.Git.Tfs.Core.GitTfsRemote.<>c__DisplayClass1a.<WithTemporaryIndex>b__19() in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 336
  at Sep.Git.Tfs.Core.GitTfsRemote.WithTemporaryEnvironment(Action action, IDictionary`2 newEnvironment) in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:l ine 346
  at Sep.Git.Tfs.Core.GitTfsRemote.WithTemporaryIndex(Action action) in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 333
  at Sep.Git.Tfs.Core.GitTfsRemote.CopyTree(String lastCommit, ITfsChangeset changeset) in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 253
  at Sep.Git.Tfs.Core.GitTfsRemote.QuickFetch() in d:\dev\github\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 150
  at Sep.Git.Tfs.Commands.QuickFetch.DoFetch(IGitTfsRemote remote) in d:\dev\github\git-tfs\GitTfs\Commands\QuickFetch.cs:line 20
  at Sep.Git.Tfs.Commands.Fetch.Run(String[] args) in d:\dev\github\git-tfs\GitTfs\Commands\Fetch.cs:line 57
  at Sep.Git.Tfs.Commands.Fetch.Run() in d:\dev\github\git-tfs\GitTfs\Commands\Fetch.cs:line 49
  at Sep.Git.Tfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath, String gitRepositoryPath) in d:\dev\github\git-tfs\GitTfs\Commands\Clone.cs:line 3 9
  at Sep.Git.Tfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath) in d:\dev\github\git-tfs\GitTfs\Commands\Clone.cs:line 32
  --- End of inner exception stack trace ---
  at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAt tributes, RuntimeType typeOwner)
  at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes , RuntimeType typeOwner)
  at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisib ilityChecks)
  at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
  at Sep.Git.Tfs.Util.GitTfsCommandRunner.Run(GitTfsCommand command, IList`1 args) in d:\dev\github\git-tfs\GitTfs\Util\GitTfsCommandRunner.cs:line 36
  at Sep.Git.Tfs.GitTfs.Main(GitTfsCommand command, IList`1 unparsedArgs) in d:\dev\github\git-tfs\GitTfs\GitTfs.cs:line 56
  at Sep.Git.Tfs.GitTfs.Run(IList`1 args) in d:\dev\github\git-tfs\GitTfs\GitTfs.cs:line 39
  at Sep.Git.Tfs.Program.Main(String[] args) in d:\dev\github\git-tfs\GitTfs\Program.cs:line 23
The server returned content type text/html, which is not supported.

Reply to this email directly or view it on GitHub:
https://github.com/spraints/git-tfs/issues/37#comment_1052930

from git-tfs.

dontjee avatar dontjee commented on July 26, 2024

Thanks for you help. I was able to narrow it down to a file that I had cloaked in Visual Studio which is why I hadn't seen the error before. I deleted the file from TFS, and everything worked perfectly.

Thanks!

from git-tfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.