I could install the chaincode without any errors.
info: Install done. Errors: nope
But I am facing errors while instantiating the same chaincode.
using : node instantiate.js
The errors are:
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: is not a valid endorsement system chaincode)
at new createStatusError (/home/ragpach2/marbles_tutorial/marbles/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15)
at /home/ragpach2/marbles_tutorial/marbles/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15
error: [fcw] Failed to obtain endorsement for transaction. code=2, , details=chaincode error (status: 500, message: is not a valid endorsement system chaincode)
error: [fcw] Error in instantiate catch block object code=2, , details=chaincode error (status: 500, message: is not a valid endorsement system chaincode)
info: Instantiate done. Errors: parsed=Blockchain network error - is not a valid endorsement system chaincode), raw=[code=2, , details=chaincode error (status: 500, message: is not a valid endorsement system chaincode)]
warn: Note: the chaincode should have been installed before running this script
info: First we enroll
info: [fcw] Going to enroll with admin cert! peer_urls=[grpc://localhost:7051], channel_id=mychannel, uuid=rutes-Docker Compose Network-mychannel-fabric-peer-org1, orderer_url=grpc://localhost:7050, msp_id=Org1MSP
debug: added peer grpc://localhost:7051
debug: [fcw] Successfully got enrollment rutes-Docker Compose Network-mychannel-fabric-peer-org1
Hi, I have been following the README file.
I could install the chaincode without any errors. info: Install done. Errors: nope But I am facing errors while instantiating the same chaincode. using : node instantiate.js
The errors are:
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: is not a valid endorsement system chaincode) at new createStatusError (/home/ragpach2/marbles_tutorial/marbles/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15) at /home/ragpach2/marbles_tutorial/marbles/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15 error: [fcw] Failed to obtain endorsement for transaction. code=2, , details=chaincode error (status: 500, message: is not a valid endorsement system chaincode) error: [fcw] Error in instantiate catch block object code=2, , details=chaincode error (status: 500, message: is not a valid endorsement system chaincode)
info: Instantiate done. Errors: parsed=Blockchain network error - is not a valid endorsement system chaincode), raw=[code=2, , details=chaincode error (status: 500, message: is not a valid endorsement system chaincode)]
`` Kindly help. **** Thanking You
Raginee