Closed david168 closed 4 years ago
POST /api/register-user HTTP/1.1 Host: localhost:4200 User-Agent: curl/7.58.0 accept: application/json Content-Type: application/json Content-Length: 63
Cannot POST /api/register-user
@david168 you have to enroll identities after you create them.
Use ./enroll_idnetities.sh
@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)
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
@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.
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