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

Problem in running the app #52

Closed kaliaanup closed 5 years ago

kaliaanup commented 5 years ago

I have completed the network part followed by the middleware part. Then I am trying to run the application by running "node app.js", however I am getting the following error.

$node app.js

info: [ClientUtils]:



[2019-02-10 10:55:45.299] [INFO] TradeApp - ** SERVER STARTED **** [2019-02-10 10:55:45.300] [INFO] TradeApp - *** http://localhost:4000 ** UnauthorizedError: No authorization token was found

VRamakrishna commented 5 years ago

What query did you send to the server that triggered this error?

kaliaanup commented 5 years ago

Just tried to invoke the url (http://localhost:4000) on a browser.

VRamakrishna commented 5 years ago

Ah, I agree that ought to be handled more gracefully, but just hitting the web server like that serves no purpose. Try the queries that hit the blockchain and do something useful. A sample list is given in the README here and in the book.

kaliaanup commented 5 years ago

I think the issue is resolved. I am able to run curl commands.