Relative Content

Tag Archive for node.jshyperledger-fabrichyperledger-fabric-sdk-js

Getting Error: DiscoveryService: mainchannel error: access denied

I am trying to submit a transaction using the contract object of the which is obtained after connecting to the fabric network through the gateway.
Gateway is being established successfully but when trying to use gateway.getNetwork() method gives out this error:

Getting Error: fabric-ca request enroll failed with errors [[ { code: 20, message: ‘Authentication failure’ } ]]

I am using the fabric-network module to connect to the the certificate authority to enroll the admin and the user. But I wanted to have custom affiliation so i made changes in the fabric-ca-server-config.yaml and fed it to the ca container by using volumes. But after doing that i am getting this error:
Error: fabric-ca request enroll failed with errors [[ { code: 20, message: ‘Authentication failure’ } ]]