Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running benchmark on version 0.4.0 | Ethereum #126

Open
fbalwy opened this issue Oct 18, 2020 · 1 comment
Open

Error running benchmark on version 0.4.0 | Ethereum #126

fbalwy opened this issue Oct 18, 2020 · 1 comment
Labels
ethereum help wanted Extra attention is needed question Further information is requested

Comments

@fbalwy
Copy link

fbalwy commented Oct 18, 2020

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
                }
            }
        }
    }
}
@fbalwy fbalwy changed the title Error running benchmark on version 0.4.0 | Hyperledger Fabric 2.1.0 Error running benchmark on version 0.4.0 | Ethereum Oct 18, 2020
@davidkel
Copy link
Contributor

davidkel commented Feb 17, 2022

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 #168

@davidkel davidkel added the question Further information is requested label Feb 24, 2022
@davidkel davidkel added the help wanted Extra attention is needed label Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ethereum help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants