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