Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I am making bitbucket api more than 1000 times , I am getting resource exhausted exception

Ankit Gupta February 23, 2024

I am getting 429 Rate limit for this resource has been exceeded, can anyone help me to understand how I can increase this rate limit . Earlier I have created clients using ussername/password and now I tried with workspace access token but this issue still persists. I thought of downloading the whole directory in memory to avoid doing get calls but it seems there is no such api to download the content recursively from a dirrectory though we have same option from UI.

1 answer

0 votes
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 25, 2024

Hi @Ankit Gupta

This has been reported here, and a possible workaround is to use repository/workspace tokens.

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 25, 2024

Hi @Ankit Gupta 

While the rate limit is not able to be increased (see above comment listing the feature request), each workspace token has a 1,000 request limit so you can create multiple workspace tokens and split the requests across these. Say you needed to send 3,000 requests per hour for example, you could send 1,000 using WorkspaceTokenA, another 1,000 using WorkspaceTokenB and another 1,000 using WorkspaceTokenC.

As for recursive file downloading, this is more a limitation of cURL/wGet, we do have file downloading capabilities in our API so I will share this documentation as well as some external documentation that provides some assistance with working around cURL/wGet limitations:

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Like # people like this
Ankit Gupta February 25, 2024

Thanks for the update @Ben , can we use workspace access token to download a directory as zip , or we need to use username:password only, as I tried the api to get as zip using workspace access token is not working but with username:password I was able to do so .

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events