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

Error running curl from step 7. #15

Closed david168 closed 4 years ago

david168 commented 4 years ago

I got a HTTP : 404 error when tried to run the scripts on Step 7. It works from the UI to create and register the users.

cd fabric-contract-attribute-based-access-control/scripts ./create_identities.sh ./testcase.sh

david168 commented 4 years ago
horeaporutiu commented 4 years ago

@david168 you have to enroll identities after you create them.

Use ./enroll_idnetities.sh

david168 commented 4 years ago

@horeaporutiu, Thanks, I actually failed on the step "./create_identities.sh", curl gives HTTP/1.1 404 Not Found. Curl seems able to connect to the server as indicated below, but can't find the "register-user" method.

Connected to localhost (127.0.0.1) port 4200 (#0)

horeaporutiu commented 4 years ago

Maybe because the create identities script uses API url 3000?

Can u use port 3000 instead as is in the default?

On Wed, Apr 22, 2020 at 2:40 PM David Lai notifications@github.com wrote:

@horeaporutiu https://github.com/horeaporutiu, Thanks, I actually failed on the step "./create_identities.sh", curl gives HTTP/1.1 404 Not Found. Curl seems able to connect to the server as indicated below, but can't find the "register-user" method.

Connected to localhost (127.0.0.1) port 4200 (#0)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IBM/fabric-contract-attribute-based-access-control/issues/15#issuecomment-618055448, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPSAZIMFDRVYQWRCJL727DRN5P6DANCNFSM4MMFLFZA .

-- Thanks in advance, Horea Porutiu

Univ. of California, San Diego 2017 B.S. Computer Science B.S. Management Science (310) 707-6864 horeaporutiu@gmail.com

david168 commented 4 years ago

@horeaporutiu, thanks for your help. It works using default 3000 port instead of port 4200. curl connects connect to server directly, I overlook that. Thanks again.