Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: error getting chaincode code fabcar: failed to determine platform type: Unknown chaincodeType: UNDEFINED

I am new to Hyperledger Fabric and going thru their study tutorial https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html . Issue : I made changes in query.js and invoke.js to replace local host with my IP Address which I reverted back to original . Now when I run startFabric.sh script , I am getting following error : " Error: error getting chaincode code fabcar: failed to determine platform type: Unknown chaincodeType: UNDEFINED " . I have googled the issue whole day but still unable to solve . Please let me know how I may solve this issue .

like image 392
gaurav_iphone Avatar asked Jun 01 '26 22:06

gaurav_iphone


1 Answers

You aren't specifying a chaincode type, the command is ./startFabric.sh <chaincode type> which you can specify as something like javascript or golang

like image 109
lindluni Avatar answered Jun 03 '26 13:06

lindluni



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!