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

Bug #19

Open
SuchismitaGoswami opened this issue Mar 29, 2023 · 0 comments
Open

Bug #19

SuchismitaGoswami opened this issue Mar 29, 2023 · 0 comments

Comments

@SuchismitaGoswami
Copy link

SuchismitaGoswami commented Mar 29, 2023

Describe the bug
The library does not through an error if provided with a string in place of number, as expected for maxRequestsPerInterval field

To Reproduce
Steps to reproduce the behavior:
Please use the below code to reproduce the behavior

 static throttle = throttledQueue("100 // at most 100 requests per second", 1000); 
 let {data} = await throttle(() => {
                    return axios({
                    method: 'get',
                    url: <URL>,
                });
   });

Expected behavior
It should raise an error that input is invalid

Additional context
I am fine to raise a PR to fix this issue if allowed

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

1 participant