无法使用 hyperldeger composer 向参与者颁发身份

Cannot issue identity to participant using hyperldeger composer

我将参与者定义为:

participant SupplierChainParticipant 由 participantId {

o String participantId

o String identity

o String type

o String secret

}

我还使用 composer-rest-server loopback API 创建了参与者,创建的参与者:

{

"$class": "org.suppchain.SupplierChainParticipant",

"participantId": "Deepak",

"identityName": "Parmar",

"type": "OEM",

"secret": "not defined"

}

现在,我正在尝试使用 composer cli 使用命令发布身份:

作曲家身份问题 -n 'supplychain-network' -p hlfv1 -i admin -s adminpw -u dvparmar -a "org.suppchain.SupplierChainParticipant#Deepak"

但是,我收到以下错误:

错误:fabric-ca 请求注册失败,出现错误 [[{"code":0,"message":"User 'dvparmar' is already registered"}]] 命令失败。

任何 input/suggestion 都会有所帮助。

如果您可以重现此问题,请提出问题,我们将查看执行操作的顺序和错误处理。