Skip to content

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

@amitchandra-1982

Description

@amitchandra-1982

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions