How to fix curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated [duplicate]

旧巷老猫 提交于 2021-01-05 11:26:25

问题


Same question as

  • git error:RPC failed,curl 56 GnuTLS recv error (-110), and
  • "error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated", in which Hovo Asatryan has commented "it doesn’t solve the problem, I have tried it", and I've tried it too, and neither it worked for me.

So the problem with git is:

git clone -- https://go.googlesource.com/tools
remote: Sending approximately 28.83 MiB ...
remote: Counting objects: 54, done
error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
remote: Total 51879 (delta 33023), reused 51879 (delta 33023)
Receiving objects: 100% (51879/51879), 28.83 MiB | 4.53 MiB/s, done.
Resolving deltas: 100% (33023/33023), done.

I.e., it doesn't seem to be a big deal as git clone is able to recover from it. However, the problem for me is with go get:

$ go get -v -u golang.org/x/tools/cmd/goimports
get "golang.org/x/tools/cmd/goimports": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at //golang.org/x/tools/cmd/goimports?go-get=1
get "golang.org/x/tools/cmd/goimports": verifying non-authoritative meta tag
golang.org/x/tools (download)
# cd .; git clone -- https://go.googlesource.com/tools /home/me/l/ws/Go/src/golang.org/x/tools
Cloning into '.../Go/src/golang.org/x/tools'...
error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
package golang.org/x/tools/cmd/goimports: exit status 128

I.e., even git clone has already successfully clone the repo, go get still fails.

Thus, I need to totally fix the issue.

来源:https://stackoverflow.com/questions/64878273/how-to-fix-curl-56-gnutls-recv-error-110-the-tls-connection-was-non-properly

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