Failed to create new channel client: event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: QueryBlockConfig failed: queryChaincode failed: Transaction processing for endorser [localhost:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [localhost:7051]: connection is in TRANSIENT_FAILUREpanic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xb25df0]
[错误提示]:
[解决方法]:
官方调用链码的示例代码,在main()函数 获取 connection-org1.yaml路径出了问题,还是要填写自己电脑上的路径
/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com
以防万一 populateWallet()函数中 找cert.pem证书文件 也要确认是否为电脑上的路径:
fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/User1@org1.example.com/msp/signcerts
官网上写的 cert.pem 实际上应该改为User1@org1.example.com-cert.pem