Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

First round test failing and hanging up #39

Open
l4l opened this issue Nov 30, 2017 · 2 comments
Open

First round test failing and hanging up #39

l4l opened this issue Nov 30, 2017 · 2 comments

Comments

@l4l
Copy link

l4l commented Nov 30, 2017

Hey! I've tried to check fabric benchmarks but something went wrong

Run via:

npm install && npm install fabric{,-ca}-client
node benchmark/simple/main.js
**** End-to-end flow: testing 'open' ****
----test round 0----
started monitor successfully
info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"peer0.org1.example.com","grpc.default_authority":"peer0.org1.example.com","request-timeout":120000}
info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"peer1.org2.example.com","grpc.default_authority":"peer1.org2.example.com","request-timeout":120000}
start client 22613:opening accounts
Client 22613: error Error: "admin" parameter must be of type boolean
    at Client.newTransactionID (/home/kitsu/dev/caliper/node_modules/fabric-client/lib/Client.js:463:11)
    at Object.invokebycontext (/home/kitsu/dev/caliper/src/fabric/e2eUtils.js:508:28)
    at Fabric.invokeSmartContract (/home/kitsu/dev/caliper/src/fabric/fabric.js:84:25)
    at Blockchain.invokeSmartContract (/home/kitsu/dev/caliper/src/comm/blockchain.js:100:31)
    at Object.module.exports.run (/home/kitsu/dev/caliper/benchmark/simple/open.js:29:15)
    at prev.then (/home/kitsu/dev/caliper/src/comm/bench-client.js:91:34)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:22613) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: "admin" parameter must be of type boolean
(node:22613) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"peer1.org2.example.com","grpc.default_authority":"peer1.org2.example.com","request-timeout":120000}
start client 22618:opening accounts
Client 22618: error Error: "admin" parameter must be of type boolean
    at Client.newTransactionID (/home/kitsu/dev/caliper/node_modules/fabric-client/lib/Client.js:463:11)
    at Object.invokebycontext (/home/kitsu/dev/caliper/src/fabric/e2eUtils.js:508:28)
    at Fabric.invokeSmartContract (/home/kitsu/dev/caliper/src/fabric/fabric.js:84:25)
    at Blockchain.invokeSmartContract (/home/kitsu/dev/caliper/src/comm/blockchain.js:100:31)
    at Object.module.exports.run (/home/kitsu/dev/caliper/benchmark/simple/open.js:29:15)
    at prev.then (/home/kitsu/dev/caliper/src/comm/bench-client.js:91:34)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:22618) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: "admin" parameter must be of type boolean
(node:22618) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"peer1.org2.example.com","grpc.default_authority":"peer1.org2.example.com","request-timeout":120000}
start client 22612:opening accounts
Client 22612: error Error: "admin" parameter must be of type boolean
    at Client.newTransactionID (/home/kitsu/dev/caliper/node_modules/fabric-client/lib/Client.js:463:11)
    at Object.invokebycontext (/home/kitsu/dev/caliper/src/fabric/e2eUtils.js:508:28)
    at Fabric.invokeSmartContract (/home/kitsu/dev/caliper/src/fabric/fabric.js:84:25)
    at Blockchain.invokeSmartContract (/home/kitsu/dev/caliper/src/comm/blockchain.js:100:31)
    at Object.module.exports.run (/home/kitsu/dev/caliper/benchmark/simple/open.js:29:15)
    at prev.then (/home/kitsu/dev/caliper/src/comm/bench-client.js:91:34)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:22612) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: "admin" parameter must be of type boolean
(node:22612) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
start client 22624:opening accounts
Client 22624: error Error: "admin" parameter must be of type boolean
    at Client.newTransactionID (/home/kitsu/dev/caliper/node_modules/fabric-client/lib/Client.js:463:11)
    at Object.invokebycontext (/home/kitsu/dev/caliper/src/fabric/e2eUtils.js:508:28)
    at Fabric.invokeSmartContract (/home/kitsu/dev/caliper/src/fabric/fabric.js:84:25)
    at Blockchain.invokeSmartContract (/home/kitsu/dev/caliper/src/comm/blockchain.js:100:31)
    at Object.module.exports.run (/home/kitsu/dev/caliper/benchmark/simple/open.js:29:15)
    at prev.then (/home/kitsu/dev/caliper/src/comm/bench-client.js:91:34)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:22624) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: "admin" parameter must be of type boolean
(node:22624) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
info: [EventHub.js]: _connect - options {"grpc.ssl_target_name_override":"peer1.org2.example.com","grpc.default_authority":"peer1.org2.example.com","request-timeout":120000}
start client 22630:opening accounts
Client 22630: error Error: "admin" parameter must be of type boolean
    at Client.newTransactionID (/home/kitsu/dev/caliper/node_modules/fabric-client/lib/Client.js:463:11)
    at Object.invokebycontext (/home/kitsu/dev/caliper/src/fabric/e2eUtils.js:508:28)
    at Fabric.invokeSmartContract (/home/kitsu/dev/caliper/src/fabric/fabric.js:84:25)
    at Blockchain.invokeSmartContract (/home/kitsu/dev/caliper/src/comm/blockchain.js:100:31)
    at Object.module.exports.run (/home/kitsu/dev/caliper/benchmark/simple/open.js:29:15)
    at prev.then (/home/kitsu/dev/caliper/src/comm/bench-client.js:91:34)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:22630) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: "admin" parameter must be of type boolean
(node:22630) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@haojun
Copy link
Contributor

haojun commented Dec 4, 2017

Can you try fabric-sdk-node-1.0.0 or commit 509b86a0b37fdb8e0d84847428494bd3660b43eb
that's the version we are using now.
Not sure if the error is caused by the update of fabric-sdk-node, we may update caliper later when fabric v1.1 is officially released.

@l4l
Copy link
Author

l4l commented Dec 6, 2017

Ah, I see. Works fine with the 1.0.0

I leave issue open until fix for newer version is ready, if you don't mind

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants