首页 文章

Hyperledger Fabric Errror:查询 - 错误:链码错误(状态:500,消息:无法获取块编号1,错误在索引中找不到条目

提问于
浏览
1

我正在尝试执行在超级边界的结构样本中运送的 balancer 转移应用程序 . 源代码路径git clone https://github.com/hyperledger/fabric-samples.git

所有步骤如下执行
Channels 已创建
在Org1上加入了 Channels
在Org2上加入了 Channels
在组织org1上成功安装了链代码
在组织org2上成功安装了链代码

但实例化的链代码操作在同行上失败了 . 任何人都可以帮我解决这个问题 . 我从上一周开始苦苦挣扎 . 我在ubuntu v16上使用docker容器 .

错误日志:

[2017-10-02 05:11:11.374] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature:  Signature {
r: <BN: 4824699f0a1d1a0fc696df545fb3379dffc6b46124619f53672359a6755bc7ff>,
s: <BN: 49fc91b2a7800eff5396053d4d8ff2683167a9e3f52ccc43228143f9b5741168>,
recoveryParam: 0 } error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: chaincode error (status: 500, message: Failed to get block number 1, error Entry not found in index)
at /home/02102017/fabric-samples/balance-transfer/node_modules/grpc/src/node/src/client.js:554:15
error: [Channel.js]: Failed Query block. Error: Error: chaincode error (status: 500, message: Failed to get block number 1, error Entry not found in index)
at /home/02102017/fabric-samples/balance-transfer/node_modules/grpc/src/node/src/client.js:554:15
[2017-10-02 05:11:11.472] [ERROR] Query - Error: chaincode error (status: 500, message: Failed to get block number 1, error Entry not found in index)
at /home/02102017/fabric-samples/balance-transfer/node_modules/grpc/src/node/src/client.js:554:15

Isssue resolve after increasing request-timeout in file fabric-samples-master/balance-transfer/node_modules/fabric-client/config/default.json

1 回答

  • 0

    无需覆盖 fabric-samples-master/balance-transfer/node_modules/fabric-client/config/default.json . 关于请求超时,JIRA https://jira.hyperledger.org/browse/FABN-884存在未解决的问题 . 现在作为一种解决方法,您可以在拨打电话之前全局设置它 .

    const temp = client.getConfigSetting('request-timeout');
    client.setConfigSetting('request-timeout', 60000);
    ... make your call ...
    client.setConfigSetting('request-timeout', temp);
    

    希望它能为你效劳 .

相关问题