Working with Hyperledger Composer and following this link: Hyperledger Composer Queries Tutorial. But I'm getting the above error when executing step 4.
Possibly, I was getting the error as Fabric was not running in background. But even after running the Fabric the error I get is slightly different:
Error trying to ping. Error: Error trying to query business network. Error: could not find chaincode with name 'tutorial-network' - make sure the chaincode tutorial-network has been successfully instantiated and try again Command failed