Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Blockchain by (4.1k points)

I have installed hyperledger composer locally. But on localhost it gives error :

Error : Error trying to ping.

Error: No business network has been specified for this connection.

I am not able to add model and script file as well.

This is the errors showing in terminal

error: [Hyperledger-Composer] undefined:HLFConnection            :ping()                    Error: Error trying to ping. Error: No business network has been specified for this connection
at _checkRuntimeVersions.then.catch (/usr/local/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:787:34)
at <anonymous>
at runMicrotasksCallback (internal/process/next_tick.js:121:5)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9) error: [Hyperledger-Composer] undefined:ConnectorServer          :Error: Error trying to pi

1 Answer

0 votes
by (14.4k points)

Why are you getting this error? 

You are getting this error because no business network has been specified for the connection. This does not happen when you first time to run a composer playground because there is no network and you do not have a card too. 

This happens when you stop/delete your business network, or there is no business network running but you also have the business card linked to the network.

What is the solution, then? 

Follow the tutorial to create a new business network locally. 

Restart your fabric tool by and, (* this is not to start your business network but your fabric)

Run your composer-playground again. 

When you see this error again, find a button at the top right corner. This will be folded as My Business Networks. 

Delete the card that does not have a connection or simply deploy a new network. 

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94k users

Browse Categories