报错:
[client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: {"code":303, "reason": "abnormal account"})
at new createStatusError (/Users/qin/go/src/github.com/hyperledger/caliper/node_modules/grpc/src/client.js:64:15)
at /Users/qin/go/src/github.com/hyperledger/caliper/node_modules/grpc/src/client.js:583:15
解决方案
打开caliper/network/fabricV1.0/2org1peergoleveldb/docker-compose.yaml
在peer节点中设置CORE_CHAINCODE_EXECUTETIMEOUT=120s
或
打开caliper/src/adapters/fabric/e2eUtils.js
async function instantiateLegacy(chaincode, endorsement_policy, upgrade){
Client.setConfigSetting('request-timeout', 600000);
修改600000为1200000
https://github.com/hyperledger/caliper/issues/143可参见:
和https://github.com/hyperledger/caliper/issues/137中aklenik 的回答
本文解决Hyperledger Caliper测试中遇到的链码错误问题,通过调整超时时间和配置文件来解决异常账户状态导致的报错。
480

被折叠的 条评论
为什么被折叠?



