I am using the Jira API (using NodeJS to run the script) in order to access some jira items like tasks, bugs and so on. We access these in order to count some metrics under certain conditions. Sometimes in the middle of it the script terminates and gives an Error code 429. As far as I am aware this happens when the amount of requests exceeds a certain threshold (this is likely a defense mechanism against DDOS)
This error happens with the jira commands like (assuming "jira" is the JiraApi) "jira.findIssue" and "jira.getCommentForIssue".
What is the magical threshold number (or the rate of "requests per second" if you will), that triggers this error code?
Or if you can propose a better alternative way of making my script go without that error, here's what I have:
We are using a for-each-cycle to go through the list of jira items found (they can range from 50 to 500 or so). What we could do is implement a regular for-cycle to go through X amount of items at a time and wait a specific amount of time before continuing to the next X amount of found items. But for that I would like to know the magical threshold number first in order to not trigger the Error code 429.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events