Closed grabastart closed 5 years ago
This sounds like some old problem with grpc node version due to sdk compatibility issue.
What version of node sdk modules fabric-client & fabric-ca-client did you installed ? Also can you confirm what fabric images are you using with the following commands from the project directory ?
npm ls fabric-client fabric-ca-client
docker images | grep fabric
Env: Ubunto 18.04 on VM
For the bootstrap_app.sh existing Fabric 1.x images are retailed, that is, the code for pulling 1.2 Fabric images was disabled.
Execution got better but failed at "instantiate" process, see detailed error below.
signature: Signature { r:,
s: <BN: 3c7c2386ee1ba77c4a19520f7c223338350576aabfebe39ddb54a0fa7cbaa0ff>,
recoveryParam: 0 }
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/dli/SecuringArt-using-Blockchain-DigitalCertificates/node_modules/grpc/src/client.js:64:15)
at /home/dli/SecuringArt-using-Blockchain-DigitalCertificates/node_modules/grpc/src/client.js:583:15
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/dli/SecuringArt-using-Blockchain-DigitalCertificates/node_modules/grpc/src/client.js:64:15)
at /home/dli/SecuringArt-using-Blockchain-DigitalCertificates/node_modules/grpc/src/client.js:583:15
[2018-09-23 12:35:13.922] [ERROR] instantiate-chaincode - instantiate
proposal was bad
[2018-09-23 12:35:13.923] [ERROR] instantiate-chaincode - instantiate
proposal was bad
[2018-09-23 12:35:13.923] [DEBUG] instantiate-chaincode - Failed to
send Proposal and receive all good ProposalResponse
[2018-09-23 12:35:13.923] [ERROR] instantiate-chaincode - Failed to
instantiate. cause:Failed to send Proposal and receive all good
ProposalResponse
(node:3839) UnhandledPromiseRejectionWarning: Error: Failed to
instantiate. cause:Failed to send Proposal and receive all good
ProposalResponse
at Object.instantiateChaincode
(/home/dli/SecuringArt-using-Blockchain-DigitalCertificates/app/instantiate-chaincode.js:190:9)
at
(node:3839) UnhandledPromiseRejectionWarning: Unhandled promise
rejection. This error originated either by throwing inside of an async
function without a catch block, or by rejecting a promise which was
not handled with .catch(). (rejection id: 1)
(node:3839) [DEP0018] DeprecationWarning: Unhandled promise rejections
are deprecated. In the future, promise rejections that are not handled
will terminate the Node.js process with a non-zero exit code.