Hyperledger Fabric Node.js REST api错误:流已删除

时间:2019-03-30 12:30:06

标签: node.js hyperledger-fabric

我有一个使用hyperledger fabric框架的区块链网络。我正在尝试使用此存储库将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)"
  }
}

1 个答案:

答案 0 :(得分:1)

fabric-sdk-rest存储库非常老,不再维护。它可能实际使用的结构的最后一个版本是Hyperledger fabric 1.0。我不建议您继续尝试使其工作。