0
votes

I have follow Hyperledger Composer here and all step is done.
But when i restart my PC and try to connect to Hyperledger Composer via command 'composer-rest-server' have error like this:
enter image description here

Discovering types from business network definition ...
Connection fails: Error: Error trying to ping. Error: Error trying to query business network. Error: Connect Failed
It will be retried for the next request.
Exception: Error: Error trying to ping. Error: Error trying to query business network. Error: Connect Failed
Error: Error trying to ping. Error: Error trying to query business network. Error: Connect Failed
at _checkRuntimeVersions.then.catch (/home/linux-user/.nvm/versions/node/v8.9.4/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:713:34)
at <'anonymous'>

Please help! Thank You.

2
Please provide the error message in your question. - Roland Weber

2 Answers

0
votes

See this answer for restarting the underlying Fabric before starting the REST Server.

0
votes

When you restart your system, you also shut down all running docker containers. Restart containers(your blockchain network) before launching composer rest server.