caliper-benchmarks
caliper-benchmarks copied to clipboard
Error running benchmark on version 0.4.0 | Ethereum
Hello, I am trying to run the simple scenario example on the Ethereum, but facing the following errors
2020.10.18-04:27:11.799 error [caliper] [round-orchestrator] Failed round 1 (open): Error: Error: Module "/Users/fbalwy/Desktop/caliper-benchmarks-0.4.0 3/benchmarks/scenario/simple/open.js" could not be loaded: TypeError: Class extends value #<Object> is not a constructor or null
2020.10.18-04:27:11.808 error [caliper] [round-orchestrator] Failed round 2 (query): Error: Error: Module "/Users/fbalwy/Desktop/caliper-benchmarks-0.4.0 3/benchmarks/scenario/simple/query.js" could not be loaded: TypeError: Class extends value #<Object> is not a constructor or null
2020.10.18-04:27:11.818 error [caliper] [round-orchestrator] Failed round 3 (transfer): Error: Error: Module "/Users/fbalwy/Desktop/caliper-benchmarks-0.4.0 3/benchmarks/scenario/simple/transfer.js" could not be loaded: TypeError: Class extends value #<Object> is not a constructor or null
2020.10.18-04:27:11.819 error [caliper] [report-builder] No data within test result; implies error within configuration files
2020.10.18-04:27:11.819 error [caliper] [round-orchestrator] Error while finalizing the report: Error: unrecognized report table
at ReportBuilder.setSummaryTable (/usr/local/lib/node_modules/@hyperledger/caliper-cli/node_modules/@hyperledger/caliper-core/lib/manager/report/report-builder.js:142:19)
I have only changed the networkconfig.json
to be able to run the benchmark on local Ethereum network
{
"caliper": {
"blockchain": "ethereum"
},
"ethereum": {
"url": "ws://localhost:8545",
"contractDeployerAddress": "0xB4422fD3450Fcff1190861ECAacc1cfB01008A9e",
"contractDeployerAddressPrivateKey": "d16becb442ff55c43a24d6e28f4b7cf3cd6786c90e95afe73d74e4e2c18965ff",
"fromAddress": "0xB4422fD3450Fcff1190861ECAacc1cfB01008A9e",
"fromAddressPrivateKey": "d16becb442ff55c43a24d6e28f4b7cf3cd6786c90e95afe73d74e4e2c18965ff",
"transactionConfirmationBlocks": 2,
"contracts": {
"simple": {
"path": "./src/ethereum/simple/simple.json",
"estimateGas": true,
"gas": {
"query": 100000,
"transfer": 70000
}
}
}
}
}
I've now been able to run the simple scenario using caliper 0.4.2 with no issues with the workload files, this could have been a problem with 0.4.0. Please try again with caliper 0.4.2 and see if the problem persists. Details on how I made it run are described in https://github.com/hyperledger/caliper-benchmarks/issues/168