Query.js在Hyperledger Fabric FABCAR中无法正常工作

时间:2019-11-03 05:49:43

标签: hyperledger-fabric hyperledger

我试图在超级账本结构user1中执行fabcar示例已成功从持久性加载

执行query.js时出错,导致此问题的原因

下面我有详细的日志,并且在屏幕快照中还附有相同的日志,以获得清晰的图片。

    Error: 14 UNAVAILABLE: Trying to connect an http1.x server
        at new createStatusError (/home/arun/Documents/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15

root@arun-Virtual-Machine:/home/arun/Documents/fabric-samples/fabcar# node query.js
Store path:/home/arun/Documents/fabric-samples/fabcar/hfc-key-store
Successfully loaded user1 from persistence
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 14 UNAVAILABLE: Trying to connect an http1.x server
    at new createStatusError (/home/arun/Documents/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15)
    at /home/arun/Documents/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15
Query has completed, checking results
error from query =  { Error: 14 UNAVAILABLE: Trying to connect an http1.x server
    at new createStatusError (/home/arun/Documents/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:64:15)
    at /home/arun/Documents/fabric-samples/fabcar/node_modules/fabric-client/node_modules/grpc/src/client.js:583:15
  code: 14,
  metadata: Metadata { _internal_repr: {} },
  details: 'Trying to connect an http1.x server' }

enter image description here

0 个答案:

没有答案