hyperledger-archives / fabric

THIS IS A READ-ONLY historic repository. Current development is at https://gerrit.hyperledger.org/r/#/admin/projects/fabric . pull requests not accepted

Home Page:https://gerrit.hyperledger.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Occur path not found while deploy a new chaincode.

mingjinc opened this issue · comments

Description

I added a new chaincode in the folder github.com/hyperledeger/fabric/examples/chaincode/go, while I deploy it, it occurs not found error. How to resolve it?

{
"jsonrpc": "2.0",
"error": {
"code": -32001,
"message": "Deployment failure",
"data": "Error when deploying chaincode: Path to chaincode does not exist: github.com/hyperledeger/fabric/examples/chaincode/go/newchaincode"
},
"id": 1
}

Describe How to Reproduce

My environment is using Vagrant.

Are you using the node.js SDK to deploy? If yes, are you sure that github.com/hyperledeger/fabric/examples/chaincode/go/newchaincode directory exists on your client machine?

@smithbk , I am using REST API to deploy.
newchaincode is located in the directory /$GOPATh/src/github.com/hyperledeger/fabric/examples/chaincode/go

@minginc Trying to contact you directly on slack or other but couldn't find you online, so I sent email to follow up.

@smithbk , I am online on ST now. Could you touch me now? Thanks.

@smithbk Thanks a lot for your support. Has fixed now.

commented

Any details here?

@mingjinc i have the same problem , can you help me?