@JS:IdentityManager:validateIdentity()错误:必须激活当前身份(ACTIVATION_REQUIRED)但是我可以使用以下命令通过composer CLI激活身份:作曲者网络ping -n digitalproperty-network -p jiyababa -i dcsen1 -s BEkeKFlLVnBL 一旦通过CLI激活,我将无法在REST Server中使用该身份.这意味着,来自REST服务器的第一个交易请求不会激活身份注册表中的身份.解决方案如果您使用的CLI/Client Application/Rest Server的旧版本试图连接到Composer运行时的更新版本,则可能会发生这种情况.部署业务网络时已部署.听起来您使用新版本的CLI部署了业务网络并发布了身份,但尚未将Rest Server更新为相同版本.有关更新的信息可以在以下位置找到 https://hyperledger.github.io/composer/managing/updating-composer. html Any one came across hyperledger composer's chaincode error like : Error: The current identity must be activated (ACTIVATION_REQUIRED)?? The identity which I am using showing ISSUED in composer-playground. But once I am using System/ping through REST server, chaincode log showing this error. I hope at the time when a participant submits a transaction using an enrollment certificate, the Composer chaincode extracts the enrollment ID from the enrollment certificate, and uses it to look up the participant instance that the identity was issued to. I issued identity through CLI and then I am using it in REST server without doing anything in CLI. I am not sure how to overcome this error. Appreciate! any help.I updated all composer components to 0.12.2. I used the following CLI commands to issue identity:composer participant add -p jiyababa -n 'digitalproperty-network' -i PeerAdmin -s adminpw -d '{"$class":"net.biz.digitalPropertyNetwork.Person","personId":"[email protected]","firstName":"Dul","lastName":"Sen"}'composer identity issue -p jiyababa -n 'digitalproperty-network' -i admin -s adminpw -u dcsen1 -a "resource:net.biz.digitalPropertyNetwork.Person#[email protected]"Still getting the same error at composer chaincode.2017-09-17 14:56:12.599 UTC [Composer] Error -> ERRO 01e @JS : IdentityManager :getIdentity() Error: The current identity has not been registered:admin 2017-09-17 14:56:12.682 UTC [Composer] Error -> ERRO 01f @JS : IdentityManager :getIdentity() Error: The current identity has not been registered:admin 2017-09-17 15:09:58.641 UTC [Composer] Error -> ERRO 020 @JS : IdentityManager :validateIdentity() Error: The current identity must be activated (ACTIVATION_REQUIRED)I also tried using "admin" user to add participant and issue identity but no luck: getting composer chaincode error::Error: Unhandled promise rejection {activationRequired:true} at [anon] (/chaincode/input/src/composer/vendor/gopkg.in/olebedev/go-duktape.v3/duk_console.c:55) internal@JS : IdentityManager :validateIdentity() Error: The current identity must be activated (ACTIVATION_REQUIRED)But I can ACTIVATE the identity through composer CLI using the following command:composer network ping -n digitalproperty-network -p jiyababa -i dcsen1 -s BEkeKFlLVnBLOnce I ACTIVATED through CLI, I could NOT use the identity in REST Server. That means, first transaction request from REST server not activating the identity in identity registry. 解决方案 This can happen if you are using an old version of the CLI/Client Application/Rest Server trying to connect to a much newer version of the composer runtime that is deployed when you deploy the business network.It sounds like you deployed a business network and issued identities using a newver version of the CLI, but haven't updated the Rest Server to the same version. Information about updating can be found athttps://hyperledger.github.io/composer/managing/updating-composer.html 这篇关于Hyperledger Composer ::错误:必须激活当前身份(ACTIVATION_REQUIRED)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-02 07:54