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

running caliper version results in Cannot read property 'then' of undefined #1296

Closed
davidkel opened this issue Apr 4, 2022 · 0 comments · Fixed by #1324
Closed

running caliper version results in Cannot read property 'then' of undefined #1296

davidkel opened this issue Apr 4, 2022 · 0 comments · Fixed by #1324
Assignees
Labels
bug Something isn't working component/core Related to the core code-base

Comments

@davidkel
Copy link
Contributor

davidkel commented Apr 4, 2022

Which Caliper version are you using?

v0.4.2

Which Node.JS version are you using?

v14

Which operating system are you using?

Ubuntu

Please provide some context for your error. For example, when did the error occur? What were you trying to achieve, and how?

running caliper with the name of an unknown command

What was the observed incorrect behavior?

Cannot read property 'then' of undefined

Please provide the error logs and their surroundings.

n/a

Please provide your benchmark configuration file content, if possible.

No response

Please provide your network configuration file content, if possible.

No response

Please provide your workload module content, if possible.

No response

Please provide any additional information you deem relevant to the error.

Bug is here in caliper.js

results.thePromise.then( () => {
    // DO NOT EXIT THE PROCESS HERE
    // The event loops of the workers are still running at this point
    // The default exit code is 0 anyway
}).catch((error) => {
    Logger.error(`Error during command execution: ${error}`);
    process.exit(1);
});

results doesn't contain a property called thePromise` when an unknown command is used

@davidkel davidkel added bug Something isn't working component/core Related to the core code-base labels Apr 4, 2022
@davidkel davidkel linked a pull request Apr 25, 2022 that will close this issue
@davidkel davidkel self-assigned this Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component/core Related to the core code-base
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant