代码之家  ›  专栏  ›  技术社区  ›  Some Guy Trying To Do Math

我无法从业务网络在Hyperledger composer中发布实体

  •  0
  • Some Guy Trying To Do Math  · 技术社区  · 7 年前

    我可以与网络进行交易,并创建新的资产和参与者,但如果我是真的,将根据我获得的参与者颁发身份证。

    Error: fabric-ca request register failed with errors 
    [[{"code":0,"message":"Registration of '4770' failed in affiliation 
    validation: : scode: 401, local code: 44, local msg: Caller does not 
    have authority to act on affiliation 'org1', remote code: 20, remote msg: Authorization failure"}]]
    

    我从哪里开始调试这个问题。我正在使用IBM企业区块链系统进行部署。

    1 回复  |  直到 7 年前
        1
  •  1
  •   david_k    7 年前

    composer identity issue 默认为 org1 如果命令上未提供从属关系,则为从属关系。要指定您自己的从属关系,您需要添加选项 -o affiliation=xyz (其中xyz是在fabric ca服务器中定义的有效从属关系)。例如

    composer identity issue -c admin@network -u newuser -a org.example.mynetwork.Person#P1 -o affiliation=myaffiliation

    注意,在操场上提供附属关系是不可能的。