IBM / fabcar-blockchain-sample

Use a Kubernetes cluster to deploy a Fabric network smart contract onto blockchain
https://developer.ibm.com/patterns/write-a-smart-contract-for-the-fabcarcommercial-paper-or-iks-cluster-with-saas-v2-beta-network-think/
Apache License 2.0
107 stars 85 forks source link

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

Open amitchandra-1982 opened 4 years ago

amitchandra-1982 commented 4 years ago

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 commented 4 years ago

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

LukasJaks commented 4 years ago

am having the same issue.

horeaporutiu commented 4 years ago

@amitchandra-1982

@iman-hussain

@LukasJaks

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

LukasJaks commented 4 years ago

That worked for me. Thanks!!