xuehuiit / fabric-explorer

Fabric-explorer is a simple, powerful, maintainable, open source fabric explorer
http://www.blockchainbrother.com/
Apache License 2.0
123 stars 58 forks source link

Error when integrating Composer with Explorer #19

Closed sherlyseptiani closed 6 years ago

sherlyseptiani commented 6 years ago

The composer playground and the rest server are working fine. I've added some transactions, but Explorer shows no information; channel, blocks, tx, etc is empty. My config:

{
    "network-config": {
        "org1": {
            "name": "hlfv1",
            "mspid": "Org1MSP",
            "peer1": {
                "requests": "grpc://localhost:7050",
                "events": "grpc://localhost:7053",
                "server-hostname": "peer0.org1.example.com"
            },
            "admin": {
                "key": "../fabric-tools/fabric-scripts/hlfv1/composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore",
                "cert": "../fabric-tools/fabric-scripts/hlfv1/composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"
            }

        }
    },
    "host": "localhost",
    "port": "5000",
    "channel": "composerchannel",
    "keyValueStore": "/tmp/fabric-client-kvs",
    "eventWaitTime": "30000",
    "mysql":{
        "host":"127.0.0.1",
        "database":"fabricexplorer",
        "username":"root",
        "passwd":"sherly123"
    }
}

The error I got on the log file:

[client-utils.js]: sendPeersProposal - Promise is rejected: Error: 12 UNIMPLEMENTED: unknown service protos.Endorser at new createStatusError (/home/sherly/blockchain-explorer/node_modules/grpc/src/client.js:65:15) at /home/sherly/blockchain-explorer/node_modules/grpc/src/client.js:568:15 error: [Channel.js]: Failed Query channel info. Error: Error: 12 UNIMPLEMENTED: unknown service protos.Endorser at new createStatusError (/home/sherly/blockchain-explorer/node_modules/grpc/src/client.js:65:15) at /home/sherly/blockchain-explorer/node_modules/grpc/src/client.js:568:15 [2018-02-08 13:54:07.216] [ERROR] Query - Error: 12 UNIMPLEMENTED: unknown service protos.Endorser at new createStatusError (/home/sherly/blockchain-explorer/node_modules/grpc/src/client.js:65:15) at /home/sherly/blockchain-explorer/node_modules/grpc/src/client.js:568:15 [2018-02-08 13:54:07.217] [ERROR] blockscanner - TypeError: Cannot read property 'low' of undefined at getChainInfo.then.response (/home/sherly/blockchain-explorer/app/query.js:208:33) at