Closed dwakeman closed 6 years ago
no, actually, those are 3 different files. you may recall from the video that, before I start using the Buyer interface, I go to the Admin option and select "AutoLoad", which loads up buyer, seller, shipper, provider and finance members, along with 9 orders. The memberList.txt and the itemList.txt files are created when the autoLoad exec is run. This needs to be done each time the application starts, after running the buildAndDeploy script.
The chapter 6 code fails when you try to click on the "get order status" button. This line of code:
https://github.com/rddill-IBM/ZeroToBlockchain/blob/bbe80b5f7af031de985bc5782d15c0255909d69a/Chapter06/controller/restapi/features/composer/hlcClient.js#L212
references a file name of
memberList.txt
but the actual file name ismemberList.json
, so that line fails. I'm not sure if the answer is to just change the extension, but that did seem to fix the failure. However On line 95: https://github.com/rddill-IBM/ZeroToBlockchain/blob/bbe80b5f7af031de985bc5782d15c0255909d69a/Chapter06/controller/restapi/features/composer/hlcClient.js#L95there is a reference to a file called
itemList.txt
that is not present in thestartup
directory.Also, there is a reference to memberList.txt in the
autoload.js
script. I changed the extension, but now I get an identity error when connecting to the business network when I click theGet Order Status
button for the useryes@softwaresolutionsinc.com
.