Caliper运行实例报错Error: 2 UNKNOWN: chaincode error (status: 500, message: {"code":303, "reason": "abnorm

报错:node

[client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: {"code":303, "reason": "abnormal account"})git

    at new createStatusError (/Users/qin/go/src/github.com/hyperledger/caliper/node_modules/grpc/src/client.js:64:15)github

    at /Users/qin/go/src/github.com/hyperledger/caliper/node_modules/grpc/src/client.js:583:15docker

解决方案async

打开caliper/network/fabricV1.0/2org1peergoleveldb/docker-compose.yamlcode

在peer节点中设置CORE_CHAINCODE_EXECUTETIMEOUT=120sorm

ip

打开caliper/src/adapters/fabric/e2eUtils.jsrpc

async function instantiateLegacy(chaincode, endorsement_policy, upgrade){get

    Client.setConfigSetting('request-timeout', 600000);

修改600000为1200000

 

https://github.com/hyperledger/caliper/issues/143可参见:

https://github.com/hyperledger/caliper/issues/137aklenik 的回答