HyperledgerHandsOn / trade-finance-logistics

Trade Finance and Logistics based on Letter of Credit and Proof of Shipment
Apache License 2.0
178 stars 1.5k forks source link

CHANNEL JOIN FAILED: TypeError: Cannot read property 'stack' of undefined at Client.newDefaultKeyValueStore #48

Closed germal closed 5 years ago

germal commented 5 years ago

Hello,

I didn't manage to run successfully the application createTradeApp.js. My environment is the following

the error is

CHANNEL JOIN FAILED: TypeError: Cannot read property 'stack' of undefined at Client.newDefaultKeyValueStore.then.then.then.then (/root/go/src/github.com/hyperledger/trade-finance-logistics/middleware/join-channel.js:205:61) at

Please help , I strongly want to learn from your book. Thanks Germal

docker ps error network.log.txt

VRamakrishna commented 5 years ago

Sorry for the late reply. You configuration and setup looks fine to me. From the error symptom, and what I see in the log you have attached, I'd guess the error is because of old/mismatched credentials or perhaps old channel artifacts, but you say you deleted them before you started.

Can you just confirm that you deleted the client-certs folder (wherever you configured that; by default, it should be in the network folder.) In your comment above, you say you deleted client_certs (with an underscore, not a dash.)

When I run the code with an identical configuration to yours and after cleaning everything up, everything runs fine, as it has since the code was developed, so I'm not sure what's different in your environment. When you retry, make sure you delete not just the folders on disk but also the running docker containers and the volumes.

germal commented 5 years ago

Hello , I just deleted and re-pulled the images of docker containers and the scripts work perfectly ! Thank you very much, your book is top quality , please let us know about your further courses and publications.

VRamakrishna commented 5 years ago

Great, glad to hear it worked, and that you find the book useful. We'll post updates on this repo whenever we have any.