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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not call api/addTuna

victoryeo opened this issue · comments

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)"}}

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