回复: [Hyperledger Fabric] Node SDK Invoke - Isn't Elligble


david liu <david-khala@...>
 

I guess you could carefully compare your entire configtx.yaml with https://github.com/hyperledger/fabric/blob/release-1.4/sampleconfig/configtx.yaml

Another possibility is there is legacy crypto material before head, making your signing identity mismatch with current fabric network.

 

Best Regards,

David Liu

 

发件人: Nicholas Leonardi via Lists.Hyperledger.Org
发送时间: 20191023 20:37
收件人: Hyperledger-fabric
抄送: fabric@...
主题: [Hyperledger Fabric] Node SDK Invoke - Isn't Elligble

 

Hey guys,

I'm having trouble invoking a transaction on a network and getting an error that I can't find anyone else having.

 

got query for channel channel from 192.168.6.33:33132 but it isn't eligible: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied

 

I understand it has to do with policies but they're all set for ANY in the configtx.yaml

 

Also, when I generate the channel genesis block, I'm still getting this warning

 

2019-10-23 09:11:57.649 -03 [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 006 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml

2019-10-23 09:11:57.649 -03 [common.tools.configtxgen.encoder] NewChannelGroup -> WARN 007 Default policy emission is deprecated, please include policy specifications for the channel group in configtx.yaml

 

even though I have set the policies in the configtx like this:

 

Channel: &ChannelDefaults

    # Policies defines the set of policies at this level of the config tree

    # For Channel policies, their canonical path is

    #   /Channel/<PolicyName>

    Policies:

        # Who may invoke the 'Deliver' API

        Readers:

            Type: ImplicitMeta

            Rule: "ANY Readers"

        # Who may invoke the 'Broadcast' API

        Writers:

            Type: ImplicitMeta

            Rule: "ANY Writers"

        # By default, who may modify elements at this config level

        Admins:

            Type: ImplicitMeta

            Rule: "ANY Admins"

 

Any insight is greatly appreciated

 

Join fabric@lists.hyperledger.org to automatically receive all group messages.