#690573 git: prints raw CURLcode instead of describing error ("RPC failed; result=51")

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Tony Houghton
Date:
2023-07-06 08:51:05 UTC
Severity:
normal
Tags:
#690573#5
Date:
2012-10-15 18:19:27 UTC
From:
To:
Dear Maintainer,
*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these lines ***

I can't access my repository at <https://code.google.com/p/bombz/> with
git on my laptop, eg git clone or git push; I get the error message:

error: RPC failed; result=51, HTTP code = 0
fatal: The remote end hung up unexpectedly

My desktop PC has the same version of git and identical contents of
~/.netrc, ~/.gitconfig and .git/config for the affected project, but
that can access the repository OK. So the problem does't seem to be with
the repo, and perhaps is caused by something else git depends on which
is different on my laptop and desktop, but I can't find what result=51
means.

#690573#10
Date:
2012-10-16 01:02:41 UTC
From:
To:
retitle 690573 git: prints raw CURLcode instead of describing error ("RPC failed; result=51")
tags 690573 + upstream
quit

Hi Tony,

Tony Houghton wrote:
[...]

(Tip for the future: removing the above lines makes a report easier to
take in at a glance.)

result=51 is the return value from curl_easy_perform, which is a
CURLcode.  From /usr/include/curl/curl.h I see that 51 is

  CURLE_PEER_FAILED_VERIFICATION, /* 51 - peer's certificate or fingerprint
                                     wasn't verified fine */

But there's no way the user who doesn't read source code would have
known that --- Git ought to call curl_easy_strerror(), which would
make the message say something clearer like "SSL peer certificate or
SSH remote key was not OK" instead.  Thanks for catching it.

Sincerely,
Jonathan

#690573#19
Date:
2012-10-16 09:17:06 UTC
From:
To:
Also note that this is, in fact, a bug in libcurl. See #690551.

Cheers

#690573#24
Date:
2012-10-19 16:49:52 UTC
From:
To:
clone 690573 -1
retitle -1 Error result=51 accessing google code https git repo
reassign -1 libcurl3-gnutls
affects -1 git
forcemerge 690551 -1
thanks

Cloning and merging, hopefully this will help point other people in the
same situation as me to the most appropriate report.

#690573#29
Date:
2023-07-06 08:33:02 UTC
From:
To:
|
  |
 |




Hello there! Apologies for the random approach. Gotten your email address from YelloSA/Rocket Reach

We Hope you're doing well.

We are Labelcorr, a Printing and Packaging company, situated in Durban, KwaZulu-Natal. Just wanted to take a try, if you'd be interested in our printing and packaging products.

Our Forte: Label Printing, Solid Board Packaging(Plain or Printed/MTO), and Corrugated Packaging (Manufactured To Order)

Litho, Flexo and Digital Printing available.

Our website is attached, for a full view of our product list and projects. Hoping to hear from you!

Website: https://email.cloud2.secureclick.net/c/4485?id=151630.168.1.cf7a0c7adbe088e7ee700b2be1519cf3 (should link not highlight, copy & paste on browser)

Thank you for your time. Have a wonderful day ahead.

Trevin

Email: sales@labelcorr.com

 |
  |
 |



 | |


 | |




 |
  |
 |



->

 ( https://email.cloud2.secureclick.net/c/4485?id=151630.165.1.ace025fc3f36bffd97cc59bbffa98d34 )

 ( https://email.cloud2.secureclick.net/c/4485?id=151630.166.1.a1b3bc141f4bb53a54ce47c66308ad9d )

 ( https://email.cloud2.secureclick.net/c/4485?id=151630.167.1.82ca21297f5a8e9329bd2d42b5850668 )
<-
 |
  |
 |

 155 Rochdale Road, Springfield Park, 4001
unsubscribe ( https://gem.godaddy.com/opt_out?pact=151630-174460765-d6c654f1-3ae7-4d37-8a0c-c9a7cd901d39-228fe7097a511615b0350f4b30fb94e83154def6 )