I am building a check-script på a CI-env to check for new Pull Requests and run builds for them. The problem I am facing is that I do get alot of 429 errorcodes since I bombard the API to much (multiple repos and every X time-interval).
https://confluence.atlassian.com/bitbucket/rate-limits-668173227.html does not however document how many requests I am allowed to do for the endpoint(s):
/api/2.0/repositories/${project}/${repository}/pullrequests?limit=${limit}&state=OPEN
Also the document mentions that you are locked out for an hour which is not the way I "feel" how the API responds. But rather it works again just a few seconds later.
Is there any better way to do these checks and/or any info on how much I will have to throttle my requests?
Thank you for the detailed description of your scenario.
Let me share what I know about it:
I hope I could clarify a little bit how the limits are set.
Please let me know if you have more questions.
Thank you for this clarification. Now I Know how to work around this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome!
I'm glad I could help you with this one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are facing the same problem with our generic account which build the release. Is it possible to increase this rate limit just for him ? We plan to migrate to gitlab just for that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jérôme Fraissinet
The only way to increase the number of requests is by using an extra user and splitting the requests between the two. We can't change the limits for your account, unfortunately.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Daniel Santos - when you say "extra user" - do you mean
A) a second Member (User Account Login) of the existing Workspace, or
B) a second Workspace and move projects from the existing Workspace to the new one, or
C) something else?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.