ialberquilla / hlf1.4-supply-chain

Supply chain proof of concept in Hyperledger Fabric. Network with four companies and a specific chaincode exposed as rest API
40 stars 27 forks source link

Could not call api/addTuna #10

Open victoryeo opened 3 years ago

victoryeo commented 3 years ago

After bringing up the fabric network, i want to call api/addTuna, but it has access denied error. Please kindly help.

curl --request POST --url http://localhost:3000/api/addTuna --header 'content-type: application/json' --data '{"id":10001,"latitude":"43.3623","longitude":"8.4115","length":34,"weight":50}' {"error":{"message":"Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Channel:mychannel Discovery error:access denied","stack":"Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Channel:mychannel Discovery error:access denied\n at Network._initializeInternalChannel (/home/vic/workspace/hyperledger/fabric-samples/hlf1.4-supply-chain/node_modules/fabric-network/lib/network.js:112:12)"}}

prateek951 commented 2 years ago

Hi @victoryeo, I was unable to bring the network up for this example. Could you please help ?