theDanielJLewis / rate-limit-tester

Progressive rate-limit tester built with Node.js.
GNU General Public License v3.0
6 stars 2 forks source link

'timesPerMinute is not defined' error #7

Open JoaoCardoso193 opened 1 year ago

JoaoCardoso193 commented 1 year ago

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 commented 6 months ago

For any one running into this; the script needs another parameter to run, as per: https://github.com/theDanielJLewis/rate-limit-tester/blob/38995e7ecdf925f42c7f51cffff0b48886089cda/index.js#L17-L21

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