运行投掷调用返回事务提议很糟糕

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

在使用hurl invoke调用Controller方法时,控制台返回:

[hurley] - Sending transaction...
2019-02-28T22:55:07.051Z - error: [Peer.js]: sendProposal - timed out after:30000
[hurley] - Transaction failed!
{ Error: Transaction proposal was bad

参数在数量和类型上匹配。

hyperledger-fabric hyperledger convector hurley
1个回答
0
投票

对于我的情况,由于前两个参数是:numbers,我通过控制台发送它们没有双引号。但是,即使参数是数字,仍然需要双引号

例如:

hurl invoke mychaincode mychaincode_someMethod "87" "2" "Description"

需要使用双引号发送“87”和“2”,即使它们是函数定义中的数字。

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