SSLRead() return error -9806/15958)

匿名 (未验证) 提交于 2019-12-03 00:59:01

问题:

When I try cloning this repo (link only works when git cloning) I keep getting error: RPC failed; result=56, HTTP code = 200. How would I fix this? I have looked at this post that tells me to use GIT_CURL_VERBOSE=1 to debug it however I cannot see any issues right away.

Here is my log.

Folder=OneDrive;-time=14:41:47: GIT_CURL_VERBOSE=1 git clone https://git01.codeplex.com/casablanca Cloning into 'casablanca'... * Couldn't find host git01.codeplex.com in the .netrc file; using defaults * Hostname was NOT found in DNS cache *   Trying 23.96.195.41... * Connected to git01.codeplex.com (23.96.195.41) port 443 (#0) * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 * Server certificate: *.codeplex.com * Server certificate: MSIT Machine Auth CA 2 * Server certificate: Microsoft Internet Authority * Server certificate: Baltimore CyberTrust Root > GET /casablanca/info/refs?service=git-upload-pack HTTP/1.1 User-Agent: git/2.3.1 Host: git01.codeplex.com Accept: */* Accept-Encoding: gzip Pragma: no-cache  < HTTP/1.1 200 OK < Cache-Control: no-cache, max-age=0, must-revalidate < Pragma: no-cache < Content-Type: application/x-git-upload-pack-advertisement < Expires: Fri, 01 Jan 1980 00:00:00 GMT * Server Microsoft-IIS/8.0 is not blacklisted < Server: Microsoft-IIS/8.0 < X-Powered-By: ASP.NET < Date: Sun, 08 Mar 2015 14:41:52 GMT < Connection: close < Content-Length: 1296 <  * Closing connection 0 * Couldn't find host git01.codeplex.com in the .netrc file; using defaults * Hostname was found in DNS cache *   Trying 23.96.195.41... * Connected to git01.codeplex.com (23.96.195.41) port 443 (#1) * SSL re-using session ID * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 * Server certificate: *.codeplex.com * Server certificate: MSIT Machine Auth CA 2 * Server certificate: Microsoft Internet Authority * Server certificate: Baltimore CyberTrust Root > POST /casablanca/git-upload-pack HTTP/1.1 User-Agent: git/2.3.1 Host: git01.codeplex.com Accept-Encoding: gzip Content-Type: application/x-git-upload-pack-request Accept: application/x-git-upload-pack-result Content-Length: 890  * upload completely sent off: 890 out of 890 bytes < HTTP/1.1 200 OK < Cache-Control: no-cache, max-age=0, must-revalidate < Pragma: no-cache < Content-Type: application/x-git-upload-pack-result < Expires: Fri, 01 Jan 1980 00:00:00 GMT * Server Microsoft-IIS/8.0 is not blacklisted < Server: Microsoft-IIS/8.0 < X-Powered-By: ASP.NET < Date: Sun, 08 Mar 2015 14:41:58 GMT < Connection: close <  remote: Counting objects: 15958, done. remote: Compressing objects: 100% (7214/7214), done. * SSLRead() return error -9806/15958), 3.93 MiB | 462.00 KiB/s       * Closing connection 1 remote: Total 15958 (delta 11496), reused 12082 (delta 8470) error: RPC failed; result=56, HTTP code = 200 Receiving objects: 100% (15958/15958), 4.12 MiB | 479.00 KiB/s, done. Resolving deltas: 100% (11496/11496), done. Folder=OneDrive;-time=14:42:09: ls Folder=OneDrive;-time=14:42:11:  

I have tried this to fix it but it does not work.

I have also tried updating git via home brew. My git version is git version 2.3.1

If you need to know this is on Yosemite. I also have no anti-virus.

Note

Folder=OneDrive;-time=14:41:47: is the bash prompt (I changed it).

回答1:

This happens if you link git against GnuTLS, you have to explicitly link it against OpenSSL. CodePlex has a support page about this issue.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!