2017-11-19 6 views
0

블록 체인 탐색기 (https://github.com/hyperledger/blockchain-explorer)를 작성기 채널에 연결했습니다. 모두 좋은 점이 많습니다. 블록 및 트랜잭션 용 API를 찾아보고 호출 할 수 있지만 설치된 체인 코드를 쿼리하는 것은 실패합니다. 스택은 아래에 있습니다. 어떤 제안이 있니? 매우 감사! Please open Internet explorer to access :http://localhost:4000/ [2017-11-19 10:50:07.735] [INFO] Helper - Successfully loaded member from persistence error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: chaincode error (status: 500, message: Authorization for GETINSTALLEDCHAINCODES on channel getinstalledchaincodes has been denied with error Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]) at /Users/andrei/Development/Zest/Blockchain/blockchain-explorer/node_modules/grpc/src/client.js:554:15 error: [Client.js]: Failed Installed Chaincodes Query. Error: Error: chaincode error (status: 500, message: Authorization for GETINSTALLEDCHAINCODES on channel getinstalledchaincodes has been denied with error Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]) at /Users/andrei/Development/Zest/Blockchain/blockchain-explorer/node_modules/grpc/src/client.js:554:15 [2017-11-19 10:50:07.764] [ERROR] Query - Error: chaincode error (status: 500, message: Authorization for GETINSTALLEDCHAINCODES on channel getinstalledchaincodes has been denied with error Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]) at /Users/andrei/Development/Zest/Blockchain/blockchain-explorer/node_modules/grpc/src/client.js:554:15 [2017-11-19 10:50:08.784] [ERROR] Query - TypeError: Cannot read property 'toArray' of null at EC.sign (/Users/andrei/Development/Zest/Blockchain/blockchain-explorer/node_modules/elliptic/lib/elliptic/ec/index.js:102:30) at CryptoSuite_ECDSA_AES.sign (/Users/andrei/Development/Zest/Blockchain/blockchain-explorer/node_modules/fabric-client/lib/impl/CryptoSuite_ECDSA_AES.js:267:25) at Signer.sign (/Users/andrei/Development/Zest/Blockchain/blockchain-explorer/node_modules/fabric-client/lib/msp/identity.js:167:28) at SigningIdentity.sign (/Users/andrei/Development/Zest/Blockchain/blockchain-explorer/node_modules/fabric-client/lib/msp/identity.js:218:23) at Object.module.exports.signProposal (/Users/andrei/Development/Zest/Blockchain/blockchain-explorer/node_modules/fabric-client/lib/client-utils.js:116:28) at Function.sendTransactionProposal (/Users/andrei/Development/Zest/Blockchain/blockchain-explorer/node_modules/fabric-client/lib/Channel.js:1367:37) at Client.queryInstalledChaincodes (/Users/andrei/Development/Zest/Blockchain/blockchain-explorer/node_modules/fabric-client/lib/Client.js:590:18) at helper.getOrgAdmin.then (/Users/andrei/Development/Zest/Blockchain/blockchain-explorer/app/query.js:118:18) at <anonymous>블록 체인 탐색기 설치된 체인 코드를 쿼리하지 못했습니다. - 하이퍼 레더 패브릭

답변

0

===== 나는이 패브릭 오류가 사용하고있는 관리자가 사용자의 패브릭 CA 서버 (컨테이너)에 의해 인식되지 않는 것입니다 의심 : 당신이 당신의 CA 서버를 다시 시작했다.

예 (채널 이름이 어디 ​​: 다음과 같이 설치 작곡가의 비즈니스 네트워크를 조회 할 수 로컬 패브릭 Blockchain Explorer 설치를 사용할 수 있습니다 -

리눅스 또는 Mac에 설치 한 경우는 (윈도우 참고로 아직 Hyperledger 작곡가에 의해 지원되지 않음) composerchannel) :

curl -X GET "http://localhost:8080/apis/chaincodes?channel=composerchannel" -H "accept:application/json" 

해당 채널에 설치된 작곡가 비즈니스 네트워크의 현재 목록을 반환합니다.

또는 chaincodes의 목록

는 배치 :

curl -X POST http://localhost:8080/chaincodelist -H 'cache-control: no-cache' -H 'content-type: application/json' -d '' 
+0

은 CA를 다시 시작 API를 컬링하는 것과 같은 오류 : TypeError : 'toArray'속성을 읽을 수 없습니다. EC.sign (/Users/andrei/Development/Zest/Blockchain/blockchain-explorer/node_modules/elliptic/lib/elliptic/ec/index.js : 102 : 30) at CryptoSuite_ECDSA_AES.sign .. –