Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amitchandra-1982 opened this issue Jun 25, 2020 · 4 comments

Comments

@amitchandra-1982
Copy link

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.

@iman-hussain
Copy link

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

@LukasJaks
Copy link

am having the same issue.

@horeaporutiu
Copy link
Contributor

@amitchandra-1982

@iman-hussain

@LukasJaks

Please refer to the below issue - IBM/evote#41 (comment)

@LukasJaks
Copy link

That worked for me. Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants