代码之家  ›  专栏  ›  技术社区  ›  J.F.

事务调用上的hyperledger fabric 1.4错误

  •  0
  • J.F.  · 技术社区  · 6 年前

    我已经在超账本文档的“商业票据”教程的基础上实现了自己的项目,它在基本网络上工作,但我想在第一个网络上运行它,以便添加更多的渠道和组织。我已经做了必要的修改,以便在第一个网络上运行它。我可以安装它并实例化它,但是当我调用事务时,我得到一个错误。安装的结构版本是1.4。

    我得到以下错误:

    2019-02-04T11:08:37.318Z - error: [Network]: _initializeInternalChannel: 
    Unable to initialize channel. Attempted to contact 1 Peers. Last error was 
    Error: 2 UNKNOWN: Stream removed
    Error: Unable to initialize channel. Attempted to contact 1 Peers. Last 
    error was Error: 2 UNKNOWN: Stream removed
    at Network._initializeInternalChannel 
    (/home/fabric/go/src/github.com/hyperledger/fabric- 
    samples/bimtrust/organization/contractor/application/node_modules/fabric- 
    network/lib/network.js:120:12) at <anonymous>
    Disconnect from Fabric gateway.
    

    有人知道为什么不能初始化通道吗? 我想通道已经初始化了

    这是我的网络连接.yalm:

    name: "basic-network"
    
    x-type: "hlfv1"
    
    description: "The basic network"
    
    version: "1.0"
    
    channels:
    # name of the channel
    bimtrustchannel1:
    
    orderers:
      - orderer.BIMTrust.com
    # Required. list of peers from participating orgs
    peers:
      peer0.org1.BIMTrust.com:
         endorsingPeer: true
         eventSource: true
    
    organizations:
      Org1:
        mspid: Org1MSP
        peers:
      - peer0.org1.BIMTrust.com
    
    certificateAuthorities:
      - ca-org1
    
    orderers:
      orderer.BIMTrust.com:
        url: grpc://localhost:7050
    
    grpcOptions:
      ssl-target-name-override: orderer.BIMTrust.com
    
    peers:
    peer0.org1.BIMTrust.com:
    # this URL is used to send endorsement and query requests
    url: grpc://localhost:7051
    grpcOptions:
      ssl-target-name-override: peer0.org1.BIMTrust.com
      request-timeout: 120001
    
    certificateAuthorities:
      ca-org1:
        url: http://localhost:7054
    
    httpOptions:
      verify: false
    
    registrar:
      - enrollId: admin
        enrollSecret: adminpw
    
    caName: ca-org1
    
    0 回复  |  直到 6 年前