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

'timesPerMinute is not defined' error #7

Open
JoaoCardoso193 opened this issue Dec 13, 2022 · 1 comment
Open

'timesPerMinute is not defined' error #7

JoaoCardoso193 opened this issue Dec 13, 2022 · 1 comment

Comments

@JoaoCardoso193
Copy link

Hey, I'm trying to use this script to test out an API, but I always get the following error:

image

I've tried running node index.js --url=https://api.openaccessbutton.org/find?id=10.1016/j.jcjd.2016.02.011 --max=20 --min=1 as well as node index.js --url=https://api.openaccessbutton.org/find?id=10.1016/j.jcjd.2016.02.011 --max=20 --min=1 --per="second" and I still get the same issue.

Is there something wrong with the code or am I using the program incorrectly?

@mdklapwijk
Copy link

mdklapwijk commented May 1, 2024

For any one running into this; the script needs another parameter to run, as per:

't': {
alias: 'test',
describe: 'What to test and measure, defaults to persecond',
choices: ['concurrent', 'persecond'],
}

So adding -t concurrent or -t persecond should do it.

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

No branches or pull requests

2 participants