ethertest
ethertest

Reputation: 317

Hyperledger composer pii-network sample AuthorizeAccess transaction doesn't work

I want to test pii-network sample of hyperledger composer. I can add two participants but when I want to sumbit the AuthorizeAccess transaction I get this error: "Instance admin has a property named authorized which is not declared in org.hyperledger.composer.system.NetworkAdmin".

Upvotes: 0

Views: 714

Answers (2)

david_k
david_k

Reputation: 5868

You get this error because you have connected to the business network as the "admin" identity. It is bound to the org.hyperledger.composer.system.NetworkAdmin participant which is a system participant and not a participant the the PII sample is expecting. You should issue an identity for one or more of the participants you have created in the PII network, then switch to using one of those participants before you attempt the authorizeAccess transaction. The PII example could benefit from improved ACL rules to stop this error by only allowing the right type of participant to submit that transaction

Upvotes: 0

Paul O'Mahony
Paul O'Mahony

Reputation: 6740

this may have been an error you saw in Playground. Please update (ie re-install) your Composer dev environment to the current release v0.15.0 (as of Nov 10th) and this problem will be resolved (in 0.14.3 specifically, there was a temporary issue with transactions ie in the Playground only). You will need to install the modules as per the docs -> https://hyperledger.github.io/composer/installing/development-tools.html - this will get the latest release. Make sure you do a full teardown using the scripts you downloaded in fabric-tools (as your CC containers will be 0.14.3 or earlier and thus out of date) and that you then subsequently, do an npm -g uninstall of the same module names eg composer-cli, composer-playground etc and such that they are all at the same level (0.15.0) upon subsequent npm -g install of same composer modules.

Upvotes: 1

Related Questions