Hyperledger Composer multi-user mode: ECONNREFUSED for issued identities

一曲冷凌霜 提交于 2019-12-13 04:15:17

问题


I've been following Caroline's blog to setup a multi-user composer rest server. So, I have two servers viz. Admin Server and the User Server.

As mentioned in the tutorial I:

  1. Started the Admin Server with no authentication and single user mode. I started this server with Admin's card.
  2. Started the User Server with JWT authentication in multi-user mode. I started this server with Admin's card as well.
  3. Created a User participant and generated a card for user from the admin server.
  4. Exchanged the first JWT token for this user on the User Server. So now the user has an access token.
  5. Using this access-token I imported the user's card generated in #3 into the User Server.
  6. Checked the Wallet status using user's access-token and was able to see the card to be set as default. i.e. default:true

This seems to have worked fine. However, now I'm trying to ping the network using User Server and User's access token. And it results in:

Error: Error trying login and get user Context. Error: Error trying to enroll user or load channel configuration. Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054]

I tried setting this card to be default again but with no luck. When I list the identities issued from the admin server, I'm able to see this identity. But the status of this identity is "ISSUED". While the status of admin identity is "ACTIVATED". Is this an issue?

Or am I missing out on any of the important step here?

来源:https://stackoverflow.com/questions/52422806/hyperledger-composer-multi-user-mode-econnrefused-for-issued-identities

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!