I got error “GnuTLS recv error (-54): Error in the pull function” while I was git cloning something from github .

root@ubuntu:~# git clone  https://github.com/vmware/vsphere-automation-sdk-python.git
Cloning into 'vsphere-automation-sdk-python'...
fatal: unable to access 'https://github.com/vmware/vsphere-automation-sdk-python.git/': GnuTLS recv error (-54): Error in the pull function.
root@ubuntu:~# git clone  http://github.com/vmware/vsphere-automation-sdk-python.git
Cloning into 'vsphere-automation-sdk-python'...
fatal: unable to access 'http://github.com/vmware/vsphere-automation-sdk-python.git/': GnuTLS recv error (-54): Error in the pull function.
root@ubuntu:~# git clone  git://github.com/vmware/vsphere-automation-sdk-python.git
Cloning into 'vsphere-automation-sdk-python'...
remote: Enumerating objects: 9403, done.
remote: Counting objects: 100% (1871/1871), done.
remote: Compressing objects: 100% (635/635), done.
^Cceiving objects:   3% (283/9403)
root@ubuntu:~#

Sometimes I got below error logs:

root@ubuntu:~# git clone  https://github.com/vmware/vsphere-automation-sdk-python.git
Cloning into 'vsphere-automation-sdk-python'...
fatal: unable to access 'https://github.com/vmware/vsphere-automation-sdk-python.git/': Failed to connect to github.com port 443: Connection refused

Normally it’s kind of network latency issue so you can try more times , or replace https with git as a workaround.