nikita6187 / NEC

Our blockchain practical for the NEC challenge
2 stars 0 forks source link

Issue when registering user for org3.department1 #9

Closed nikita6187 closed 4 years ago

nikita6187 commented 4 years ago

There's some config issue when trying to register user for org3 department 1:

Failed to register user "appUser": Error: fabric-ca request register failed with errors [[{"code":0,"message":"Registration of 'appUser' failed in affiliation validation: Failed getting affiliation 'org3.department1': : scode: 404, code: 63, msg: Failed to get Affiliation: sql: no rows in result set"}]]

This is based on the QueryContract branch, the registerUser.js script. It works fine for both Org1 and Org2, but Org3 fails. Probably department1 needs to be set in some config but I have not found it yet.

Exact commands to replicate:

cd fabric_api/query
node enrollAdmin.js 3
node registerUser.js 3
nikita6187 commented 4 years ago

Alternatively, to recreate the error: 1) Go through all steps until the quick test here https://github.com/nikita68/NEC/tree/master/fabric_api/query 2) Then execute this

python3 quicktest_api.py 4000 nikita27j 3 req query_contract approveQuery 1 test_text

Then look at output of API server.

nikita6187 commented 4 years ago

Fixed with #26