我正在尝试使用超级账本卡尺测试超级账本织物样本“ fabcar”网络。我已经根据官方文档编辑了卡尺的“简单”基准config.yaml和fabricConifg.json。尝试运行时出现以下错误:
错误:[instantiate-chaincode.js]:无法实例化链码:错误:无法发送实例化投标或接收有效响应。响应为空或状态不是200。
错误:[fabric.js]:安装结构链代码失败:错误:无法发送实例化投标或接收有效响应。响应为空或状态不是200。
错误:[bench-flow.js]:错误:错误:无法发送实例化投标或接收有效响应。响应为空或状态不是200。
信息:[demo.js]:[交易信息]-提交:0成功:0失败:0未完成:0 信息:[bench-flow.js]:
这是我的结构配置文件-
{
"fabric": {
"cryptodir": "/home/kingbayeed/hyperledger/fabric-samples/basic-network/crypto-config",
"network": {
"orderer": {
"url": "grpc://localhost:7050",
"mspid": "OrdererMSP",
"msp": "/home/kingbayeed/hyperledger/fabric-samples/basic-network/crypto-config/ordererOrganizations/example.com/msp/",
"server-hostname": "orderer.example.com",
"tls_cacerts": "/home/kingbayeed/hyperledger/fabric-samples/basic-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt"
},
"org1": {
"name": "peerOrg1",
"mspid": "Org1MSP",
"msp": "/home/kingbayeed/hyperledger/fabric-samples/basic-network/crypto-config/peerOrganizations/org1.example.com/msp/",
"ca": {
"url": "http://localhost:7054",
"name": "ca-org1"
},
"peer1": {
"requests": "grpc://localhost:7051",
"events": "grpc://localhost:7053",
"server-hostname": "peer0.org1.example.com",
"tls_cacerts": "/home/kingbayeed/hyperledger/fabric-samples/basic-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
}
}
},
"channel": [
{
"name": "mychannel",
"deployed": true,
"config": "/home/kingbayeed/hyperledger/fabric-samples/basic-network/config/channel.tx",
"organizations": ["org1"]
}
],
"chaincodes": [
{"id": "fabcar", "path": "/home/kingbayeed/hyperledger/fabric-samples/chaincode/fabcar/go", "language":"golang", "version": "v1", "channel": "mychannel"}
],
"endorsement-policy": {
"identities": [
{
"role": {
"name": "member",
"mspId": "Org1MSP"
}
}
],
"policy": {"1-of":[{"signed-by":0}]}
},
"context": {
"invoke": "mychannel",
"query": "mychannel"
}
},
"info" : {
"Version": "1.0.0",
"Size": "1 Org with 1 Peer",
"Orderer": "Solo",
"Distribution": "Single Host"
}
}