Tag Archives: RPC failed error

RPC failed; curl 56 SSLRead() return error

RPC failed; curl 56 SSLRead() returned an error
Git failed during cloning or fetching with the following error:
git clone http://stash.company.com:7990/scm/proj/repo.git
Fatal:Early EOF
Fatal:Unexpected hang on remote side
Fatal:indexpack failed
Error:RPC failed; result=56, HTTP code = 200
Completion has errors, see above.
Diagnosis
Temporarily disable any firewall or antivirus software and try cloning again.
To turn on Git debug logging, do the following for different operating systems before using command line push:
On Linux
In Linux, execute the following command from the command line before executing the Git command:
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1
On Windows
Before executing the Git command, execute the following command from the command line:
set GIT_TRACE_PACKET=1
set GIT_TRACE=1
set GIT_CURL_VERBOSE=1
Cause
Issue 1:
Error code 56 indicates that curl received a CURLE_RECV_ERROR error, which means that there is some problem in the cloning process that is preventing the data from being received. This is usually caused by network settings, firewalls, VPN clients, or antivirus software that terminates the connection before all data is transferred.