rddill-IBM / ZeroToBlockchain

Tutorial for Zero to Blockchain series
342 stars 924 forks source link

Chapter 6 : Buyer Experience Issue : Export of cards #34

Closed raman2072 closed 6 years ago

raman2072 commented 6 years ago

For Chapter 6, The pre-populate list works fine, except for loading the orders. I presume this has to do with exporting the cards. If anyone who encountered this issue and has a solution, please let me know.

getMyOrders req.body.userID is: abby@kidfriendlyinc.com businessNetwork connect failed { Error: Card not found: abby@kidfriendlyinc.com at store.get.then.catch /home/ramesh/software/blockchain/ZeroToBC/Chapter06/node_modules/composer-common/lib/cardstore/walletbackedcardstore.js:74:27) at cause: { Error: ENOENT: no such file or directory, stat '/home/ramesh/.composer/cards/abby@kidfriendlyinc.com' errno: -2, code: 'ENOENT', syscall: 'stat', path: '/home/ramesh/.composer/cards/abby@kidfriendlyinc.com' } }

raman2072 commented 6 years ago

OK, as usual, a little bit bit of more digging around solved the problem.

1) You need to wipe out the .composer directory in home between server restarts. 2) You need to copy the credentials to your HLF location.