Open amitchandra-1982 opened 4 years ago
Also having this error, followed the documentation to a T.
am having the same issue.
@amitchandra-1982
@iman-hussain
@LukasJaks
Please refer to the below issue - https://github.com/IBM/evote/issues/41#issuecomment-651925530
That worked for me. Thanks!!
I am using the IBM Blockchain platform console to create the network and using the fabcar sample to connect to the network with SDK. The enrollAdmin.js script is successful but the registerUser.js is giving the below error message.
Failed to register user user1: TypeError [ERR_INVALID_ARG_TYPE]: The "options.ca" property must be one of type string, Buffer, TypedArray, or DataView. Received type object.
As per my analysis the issue is with the line. const secret = await ca.register({ affiliation: '', enrollmentID: userName, role: 'client' }, adminIdentity);
I am not sure how to resolve it,could you please help on this.