IBM / fabric-contract-attribute-based-access-control

A repo to demonstrate how to implement attribute-based-access-control in Hyperledger Fabric for a supply-chain use case using IBM Blockchain Platform VSCode extension.
https://developer.ibm.com/technologies/blockchain/patterns/fabric-contract-attribute-based-access-control
Apache License 2.0
76 stars 40 forks source link

issue running server code #18

Open cyamac1993 opened 4 years ago

cyamac1993 commented 4 years ago

Hi, First of all, I'm very thankful for sharing your code. After running server.js code I get this error :

Error connecting to Fabric network. TypeError: FileSystemWallet is not a constructor Error in connecting to Fabric network. TypeError: gateway.getClient is not a function at Object.utils.events (/Users/biekzadehsiamak/Desktop/iBM_vsCode/fabric-contract-attribute-based-access-control/application/server/utils.js:133:28) at main (/Users/biekzadehsiamak/Desktop/iBM_vsCode/fabric-contract-attribute-based-access-control/application/server/server.js:37:21)

lucivskvn commented 4 years ago

Hi, I already test the code and it's working properly as long you follow the instruction carefully, and don't try to upgrade the dependencies and convert the the JavaScript files to ES6 Module because it will broke the program.