Skip to content

error: [Network]: _initializeInternalChannel: no suitable peers available to initialize from #15

@terryfernz

Description

@terryfernz

I get a error message when trying to run node query.js from inside the web-app.
The smart contract is instantiated and running inside the Fabric n/w created using VsCode and the IBM Blockchain Extension.

Here is my local localConnection.json

{
    "name": "basic-network",
    "version": "1.0.0",
    "client": {
        "organization": "Org1",
        "connection": {
            "timeout": {
                "peer": {
                    "endorser": "300",
                    "eventHub": "300",
                    "eventReg": "300"
                },
                "orderer": "300"
            }
        }
    },
    "channels": {
        "mychannel": {
            "orderers": [
                "orderer.example.com"
            ],
            "peers": {
                "peer0.org1.example.com": {}
            }
        }
    },
    "organizations": {
        "Org1": {
            "mspid": "Org1MSP",
            "peers": [
                "peer0.org1.example.com"
            ],
            "certificateAuthorities": [
                "ca.org1.example.com"
            ]
        }
    },
    "orderers": {
        "orderer.example.com": {
            "url": "grpc://localhost:17050"
        }
    },
    "peers": {
        "peer0.org1.example.com": {
            "url": "grpc://localhost:17051",
            "eventUrl": "grpc://localhost:17053"
        }
    },
    "certificateAuthorities": {
        "ca.org1.example.com": {
            "url": "http://localhost:17054",
            "caName": "ca.example.com"
        }
    }
}

My cofig.json

{
  "connection_file": "localConnection.json",
  "appAdmin": "admin",
  "appAdminSecret": "adminpw",
  "orgMSPID": "org1msp",
  "caName": "ca.example.com",
  "userName": "user2",
  "gatewayDiscovery": { "enabled": true, "asLocalhost": true }
}

Any help will be much appreciated. Thx you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions