fabcar-blockchain-sample icon indicating copy to clipboard operation
fabcar-blockchain-sample copied to clipboard

Getting error while executing registerUser.js(Need help in priority)

Open amitchandra-1982 opened this issue 5 years ago • 4 comments

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.

amitchandra-1982 avatar Jun 25 '20 07:06 amitchandra-1982

Also having this error, followed the documentation to a T.

iman-hussain avatar Jun 30 '20 15:06 iman-hussain

am having the same issue.

LukasJaks avatar Jun 30 '20 18:06 LukasJaks

@amitchandra-1982

@iman-hussain

@LukasJaks

Please refer to the below issue - https://github.com/IBM/evote/issues/41#issuecomment-651925530

horeaporutiu avatar Jul 02 '20 19:07 horeaporutiu

That worked for me. Thanks!!

LukasJaks avatar Jul 02 '20 21:07 LukasJaks