为什么在测试网加入频道失败
Why is joining the channel failing in test network
我正在尝试编辑测试网络脚本,但遇到此错误:
Error: error getting endorser client for channel: endorser client failed to connect to localhost:7051: failed to create new connection: context deadline exceeded
我已确认端口已打开,并且 docker 容器 运行 与未经编辑(且有效)的测试网络脚本创建的完全匹配。
直到在脚本中设置VERBOSE=true
才发现问题,很明显环境变量CORE_PEER_TLS_ENABLED
没有像测试脚本那样设置为true
.即使我已经设置了它,我也没有做 export CORE_PEER_TLS_ENABLED=true
,当 peer
命令是 运行.
时,这是使它可用所必需的
我正在尝试编辑测试网络脚本,但遇到此错误:
Error: error getting endorser client for channel: endorser client failed to connect to localhost:7051: failed to create new connection: context deadline exceeded
我已确认端口已打开,并且 docker 容器 运行 与未经编辑(且有效)的测试网络脚本创建的完全匹配。
直到在脚本中设置VERBOSE=true
才发现问题,很明显环境变量CORE_PEER_TLS_ENABLED
没有像测试脚本那样设置为true
.即使我已经设置了它,我也没有做 export CORE_PEER_TLS_ENABLED=true
,当 peer
命令是 运行.