Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded
两种情况:
阿里云服务器:
$ vim /etc/resolv.conf
# 将最后一行options注释
华为云服务器:
$ vim /etc/resolv.conf
# 将最后一行options注释
# 注释之后如下
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
# options single-request-reopen