“Error getting chaincode package bytes” in car-lease-demo deploy via REST-chaincodeID 路径
“Error getting chaincode package bytes” in car-lease-demo deploy via REST-chaincodeID path
我正在尝试在 Bluemix 服务中部署汽车租赁演示,但我无法在 swaggerApi 中找到 chaincodeID 的正确路径。我使用了 github repo from IBM 但它输出了这个错误:
{
"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
}
我找到了这个
source 并检查了 JSON 选项卡,但开头提到的包不起作用。
知道哪个是 chaincodeID 在 BMX 中部署 car-lease-demo 链代码的正确路径吗?
我正在使用 BMX v0.6
如错误消息中所述,go get <chaincode path>
在链代码部署期间失败。这是因为您的部署请求中的链码 path
是错误的。此链码的正确链码路径是:
github.com/IBM-Blockchain/car-lease-demo/Chaincode/src/vehicle_code
也就是说,在您尝试以这种方式从 Web 部署链代码之前,您可以通过以下操作检查 Go 链代码是否可以通过 Web 访问:
go get <public chaincode path>
我正在尝试在 Bluemix 服务中部署汽车租赁演示,但我无法在 swaggerApi 中找到 chaincodeID 的正确路径。我使用了 github repo from IBM 但它输出了这个错误:
{
"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
}
我找到了这个 source 并检查了 JSON 选项卡,但开头提到的包不起作用。
知道哪个是 chaincodeID 在 BMX 中部署 car-lease-demo 链代码的正确路径吗?
我正在使用 BMX v0.6
如错误消息中所述,go get <chaincode path>
在链代码部署期间失败。这是因为您的部署请求中的链码 path
是错误的。此链码的正确链码路径是:
github.com/IBM-Blockchain/car-lease-demo/Chaincode/src/vehicle_code
也就是说,在您尝试以这种方式从 Web 部署链代码之前,您可以通过以下操作检查 Go 链代码是否可以通过 Web 访问:
go get <public chaincode path>