我正试图在Bluemix中部署汽车租赁演示,我无法为chaincodeID在swaggerApi中找到正确的路径。我使用了IBM的github回购,但是它输出了这个错误:
{
"jsonrpc": "2.0",
"error": {
"code": -32001,
"message": "Deployment failure",
"data": "Error when deploying chaincode: Error getting chaincode package bytes: Error getting code 'go get' failed with error: \"exit status 1\"\npackage github.com/IBM-Blockchain/car-lease-demo/Chaincode/vehicle_code: cannot find package \"github.com/IBM-Blockchain/car-lease-demo/Chaincode/vehicle_code\" in any of:\n\t/opt/go/src/github.com/IBM-Blockchain/car-lease-demo/Chaincode/vehicle_code (from $GOROOT)\n\t/opt/gopath/_usercode_/798513695/src/github.com/IBM-Blockchain/car-lease-demo/Chaincode/vehicle_code (from $GOPATH)\n\t/opt/gopath/src/github.com/IBM-Blockchain/car-lease-demo/Chaincode/vehicle_code\n"
},
"id": 3
}我找到了这个来源并检查了JSON选项卡,但是开头提到的包不起作用。
您知道chaincodeID在BMX中部署汽车租赁-演示链码的正确路径吗?
我用的是BMX版本0.6
发布于 2016-11-30 08:09:11
正如它在错误消息中所说,在链码部署期间,go get <chaincode path>失败了。这是因为部署请求中的链码path是错误的。此链码的正确链码路径是:
github.com/IBM-Blockchain/car-lease-demo/Chaincode/src/vehicle_code尽管如此,在尝试以这种方式从web部署链码之前,您可以通过执行以下操作来检查go链代码是否可以在web上访问:
go get <public chaincode path>https://stackoverflow.com/questions/40855970
复制相似问题