Hyperledger fabric nodejs REST api错误:已删除流

问题描述 投票:1回答:1

我有一个使用hyperledger fabric框架的区块链网络。我正在尝试使用此repo将REST API集成到此网络:

https://github.com/hyperledger/fabric-sdk-rest

我设置了所需的配置变量,如私钥,管理员凭据。但是我被困在这一点上因为我收到了这个错误:

{
  "error": {
    "statusCode": 500,
    "name": "Error",
    "message": "2 UNKNOWN: Stream removed",
    "code": 2,
    "metadata": {
      "_internal_repr": {}
    },
    "details": "Stream removed",
    "stack": "Error: 2 UNKNOWN: Stream removed\n    at Object.exports.createStatusError (/home/nrl/bitirme/blockchainauth/fabric-sdk-rest/packages/fabric-rest/node_modules/grpc/src/common.js:87:15)\n    at Object.onReceiveStatus (/home/nrl/bitirme/blockchainauth/fabric-sdk-rest/packages/fabric-rest/node_modules/grpc/src/client_interceptors.js:1188:28)\n    at InterceptingListener._callNext (/home/nrl/bitirme/blockchainauth/fabric-sdk-rest/packages/fabric-rest/node_modules/grpc/src/client_interceptors.js:564:42)\n    at InterceptingListener.onReceiveStatus (/home/nrl/bitirme/blockchainauth/fabric-sdk-rest/packages/fabric-rest/node_modules/grpc/src/client_interceptors.js:614:8)\n    at callback (/home/nrl/bitirme/blockchainauth/fabric-sdk-rest/packages/fabric-rest/node_modules/grpc/src/client_interceptors.js:841:24)"
  }
}
node.js hyperledger-fabric
1个回答
1
投票

fabric-sdk-rest存储库非常陈旧,不再维护。它可能实际使用的最后一个版本的结构是超级结构面料1.0。我不建议你继续尝试让它工作。

© www.soinside.com 2019 - 2024. All rights reserved.