hyperledger-caliper / caliper

A blockchain benchmark framework to measure performance of multiple blockchain solutions https://wiki.hyperledger.org/display/caliper
https://hyperledger-caliper.github.io/caliper/
Apache License 2.0
654 stars 405 forks source link

TypeError: Blockchain is not a constructor #800

Closed HelmiTrabelsi closed 4 years ago

HelmiTrabelsi commented 4 years ago

I tried to use caliper GUI, when I run a sample test I get this error

TypeError: Blockchain is not a constructor at Object.module.exports.run (/home/helmi/caliper/packages/caliper-gui-server/src/gui-caliper-flow.js:67:25) at runBenchmark (/home/helmi/caliper/packages/caliper-gui-server/src/api/api1.js:259:40) at startTest (/home/helmi/caliper/packages/caliper-gui-server/src/api/api1.js:296:28) at api.get (/home/helmi/caliper/packages/caliper-gui-server/src/api/api1.js:324:24) at Layer.handle [as handle_request] (/home/helmi/caliper/packages/caliper-gui-server/node_modules/express/lib/router/layer.js:95:5) at next (/home/helmi/caliper/packages/caliper-gui-server/node_modules/express/lib/router/route.js:137:13) at Route.dispatch (/home/helmi/caliper/packages/caliper-gui-server/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/home/helmi/caliper/packages/caliper-gui-server/node_modules/express/lib/router/layer.js:95:5) at /home/helmi/caliper/packages/caliper-gui-server/node_modules/express/lib/router/index.js:281:22 at param (/home/helmi/caliper/packages/caliper-gui-server/node_modules/express/lib/router/index.js:354:14) [DEBUG] req.params.useSample: true

aklenik commented 4 years ago

@HelmiTrabelsi The GUI components are highly experimental right now. We're working out the details of the proper integration with the core Caliper code-base. As it requires a fair amount of changes, my guess is that the GUI component won't be functional before the v0.5.0 release :/