【发布时间】:2017-09-07 15:38:06
【问题描述】:
我正在关注下面的教程
https://hyperledger.github.io/composer/integrating/enabling-rest-authentication.html
我能够完成设置默认钱包身份之前的步骤。在此之后,当我尝试系统 ping 方法时,我得到了错误。
{
"error": {
"statusCode": 500,
"name": "Error",
"message": "Error trying to ping. Error: Error trying to query chaincode. Error: chaincode error (status: 500, message: Error: The current identity has not been registered:maeid1)",
"stack": "Error: Error trying to ping. Error: Error trying to query chaincode. Error: chaincode error (status: 500, message: Error: The current identity has not been registered:maeid1)\n at _checkRuntimeVersions.then.catch (/home/praval/.nvm/versions/node/v6.11.1/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:696:34)"
}
}
我在使用访问令牌进行测试时遇到同样的错误。
curl -v http://localhost:3000/api/system/ping?access_token=xxxxx
虽然我可以成功运行网络 ping。
composer network ping -p hlfv1 -n 'digitalproperty-network' -i maeid1 -s NfUhmXtiaSUH
感谢您的帮助。
【问题讨论】: