Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal : The remote end hung up unexpectedly libcurl result = 7

Tags:

git

tfs

libcurl

I have tried just about every answer on Stackoverflow, here is what I am seeing

Counting objects: 134, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (73/73), done.
Writing objects: 100% (79/79), 208.38 KiB | 0 bytes/s, done.
Total 79 (delta 37), reused 1 (delta 0)
efrror: RPC failed; result=7, HTTP code = 401
atal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

important to note: I am using TFS Git server(Maybe that is my problem, lol)

Things I have tried:

  • making sure the url is right with git remote -v (yep everything checked out)
  • increasing the global http.postBuffer to 524288000

Interesting thing about error message: The RPC failed; result=7 is interesting in most cases on the stack overflow the result has either been in the 50's or in the 20's, the error I think comes from libcurl. If this is the case then I am getting a CURLE_COULDNT_CONNECT (7), from TFS, which I have no idea why. Has anyone else encountered this error? Or know of way to fix the problem I am seeing?

Error codes for Curl are here http://curl.haxx.se/libcurl/c/libcurl-errors.html

like image 237
Thomas Florin Avatar asked Nov 01 '22 01:11

Thomas Florin


1 Answers

I don't think it comes from libcurl. Because...

HTTP code = 401

... means that libcurl got a HTTP response back and the response code said 401. 401 means that you weren't authenticated to access that resource. Wrong username or password or similar.

like image 109
Daniel Stenberg Avatar answered Nov 15 '22 03:11

Daniel Stenberg