【发布时间】:2017-01-09 12:22:17
【问题描述】:
我正在按照说明使用 IBM Bluemix 仪表板上的 swagger API 将一些链代码部署到 IBM Hyperledger 区块链。
为了部署一些链码,我需要提交一个 JSON 请求,其中包含链码存储库的路径:
{
"jsonrpc": "2.0",
"method": "deploy",
"params": {
"type": 1,
"chaincodeID": {
"path": "https://github.com/series0ne/learn-chaincode/tree/master/finished"
},
"ctorMsg": {
"function": "init",
"args": [
"Hello, world"
]
},
"secureContext": "user_type1_0"
},
"id": 0
}
我在尝试部署之前已登录 user_type1_0,但这是我得到的结果:
{
"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/series0ne/learn-chaincode/tree/master/finished: cannot find package \"github.com/series0ne/learn-chaincode/tree/master/finished\" in any of:\n\t/opt/go/src/github.com/series0ne/learn-chaincode/tree/master/finished (from $GOROOT)\n\t/opt/gopath/_usercode_/424324290/src/github.com/series0ne/learn-chaincode/tree/master/finished (from $GOPATH)\n\t/opt/gopath/src/github.com/series0ne/learn-chaincode/tree/master/finished\n"
},
"id": 0
}
有什么想法吗?
附:目前在 Bluemix 上运行 Hyperledger 区块链的提交级别 0.6.1。
【问题讨论】:
标签: ibm-cloud blockchain hyperledger hyperledger-fabric